arr-helper-functions
Version:
Misc. functions for finding elements in arrays, sorting, and more
32 lines (18 loc) • 531 B
Markdown
Misc. functions for finding elements in arrays, sorting, and more
Using npm, `npm i arr-helper-functions`.
Using yarn, `yarn add arr-helper-functions`.
Using `import`
```javascript
import { isInArray } from 'arr-helper-functions';
isInArray(2, [3, 2, 1]) // true
```
In a CommonJS environment
```javascript
const { filterFalsyValues } = require('arr-helper-functions');
filterFalsyValues([1, null, 2, false]) // [1, 2]
```
See [DOCS](./docs/modules.md)