arr-helper-functions
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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

Package Sidebar

Install

npm i arr-helper-functions

Weekly Downloads

67

Version

2.1.1

License

MIT

Unpacked Size

45.4 kB

Total Files

18

Last publish

Collaborators

  • alrico88