2014-11-23 16:17:49 +11:00

6 lines
118 B
JavaScript

var isSorted = ([x, y, ...wow]) => {
if (!zs.length) return true
if (y > x) return isSorted(zs)
return false
};