Technical screening coding task. You have an empty function definition isSorted(arr: number[]); Implement this function.
Anonimo
You're expected to ask some questions, like what this function should return, should it return true when array is sorted in ascending or descending order. Then you need to implement the function.