alrico88 / arr-helper-functions

Misc. functions for arrays

Home Page:https://www.npmjs.com/package/arr-helper-functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Misc. functions for arrays

https://www.npmjs.com/package/arr-helper-functions

License:MIT License


Languages

Language:TypeScript 100.0%