UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

8 lines (5 loc) 198 B
import { cloneList } from './_internals/cloneList.js' export function sort(sortFn, list){ if (arguments.length === 1) return _list => sort(sortFn, _list) return cloneList(list).sort(sortFn) }