6 lines
118 B
JavaScript
6 lines
118 B
JavaScript
var isSorted = ([x, y, ...wow]) => {
|
|
if (!zs.length) return true
|
|
if (y > x) return isSorted(zs)
|
|
return false
|
|
};
|