@unction/sortby
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@unction/sortBy

Tests Stability Dependencies

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}]

Readme

Keywords

Package Sidebar

Install

npm i @unction/sortby

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

20.1 kB

Total Files

25

Last publish

Collaborators

  • krainboltgreene