npm.io
2.1.1 • Published 2 years ago

arr-helper-functions

Licence
MIT
Version
2.1.1
Deps
1
Size
44 kB
Vulns
0
Weekly
0

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

Keywords