UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

8 lines (5 loc) 163 B
export function sort(sortFn, list){ if (arguments.length === 1) return _list => sort(sortFn, _list) const clone = list.slice() return clone.sort(sortFn) }