js-array-toolkit
v1.0.0
Published
This is a package to implement some js array functions quickly.
Downloads
3
Maintainers
Readme
js-array-toolkit
It is a js array toolkit package which you can use js array functions quickly.
Install
npm i js-array-toolkit
Author
Ahin Subhra Das
Declaration
const jsArrayToolkit = require('js-array-toolkit')
Usage
Anyone can use this package for below js array operations with code implementation
Remove Duplicate Element :
jsArrayExpress(arr,'removeDuplicate');
Array join:
jsArrayExpress(arr,'join',' and ');
Get Last Element From Array:
jsArrayExpress(arr,'getLastElement');
Sort Number In ASC order:
jsArrayExpress(arr,'sortNumberAsc');
Sort Number In DSC order:
jsArrayExpress(arr,'sortNumberDsc')
Get Higest Number From Array:
jsArrayExpress(arr,'getHigestNumber');
Get Lowest Number From Array:
jsArrayExpress(arr,'getLowestNumber')
Get Array reverse:
jsArrayExpress(arr,'reverse')