UNPKG

@sarikmansuri/array-helper

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