array-helper
Array helper functions to manage and manipulate arrays
Installation
npm i @sarikmansuri/array-helper
Contributing
- To conttribute please refer CONTRIBUTING.md.
How to use
In your package.json
add the following, "type": "module"
.
Example Usage
import { secondMax } from '@sarikmansuri/array-helper';
let arr = [1, 4, 2, 5, 3];
console.log(secondMax(arr)); // Output : 4