Write a function named isSorted that receives an Array of numbers as parameter and returns true if the list is sorted (either ascending or descending).
numbers
=numbers
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro