1.1.4 • Published 3 years ago
@memen/arrayassist v1.1.4
ArrayAssist
ArrayAssist helps you to sort arrays
Installation
npm i @memen/arrayassist
Usage
import arrayAssit from @memen/arrayAssit;
const myArr = [1,5,6,9,10,49,2,4];
let reordered = arrayassit.orderNumAsc(myArr);
// output reordered = [1,2,4,5,6,9,10,49]
let reordered = arrayAssit.orderNumDesc(myArr);
// output [49,10,9,6,5,4,2,1]
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.