It makes no sense to use reduce here, however you could use a new array as an accumulator and do insertion sort with all elements: array.reduce((sorted ...
確定! 回上一頁