Short JavaScript code snippets for all your development needs
nodejs
javascript
education
snippets
programming
es6-javascript
learn-to-code
awesome-list
hacktoberfest
snippets-collection
learning-resources
-
Updated
Oct 4, 2020 - JavaScript
Make a function that returns 1 if the array is sorted in ascending order, -1 if it is sorted in descending order, or 0 if the array is not sorted.