arr-helper-functions
v2.1.1
Published
Misc. functions for finding elements in arrays, sorting, and more
Downloads
503
Readme
arr-helper-functions
Misc. functions for finding elements in arrays, sorting, and more
Installation
Using npm, npm i arr-helper-functions
.
Using yarn, yarn add arr-helper-functions
.
Usage
Using import
import { isInArray } from 'arr-helper-functions';
isInArray(2, [3, 2, 1]) // true
In a CommonJS environment
const { filterFalsyValues } = require('arr-helper-functions');
filterFalsyValues([1, null, 2, false]) // [1, 2]
Documentation
See DOCS