@unction/sortby
v1.0.4
Published
Sort a Array by a computer
Downloads
9
Readme
@unction/sortBy
MapperFunctionType<A, B> => Array => Array
Sorts an array by a given computer function.
sortBy(({id}) => id)([{id: 3}, {id: 1}, {id: 2}]) // [{id: 1}, {id: 2}, {id: 3}]