1.2.0 • Published 5 years ago

array-without-fast v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

array-without

codecov

Lightweight and fast arrayWithout which excludes values from array and creates a new copy. It is written with preformance in mind.

Super quick arrayWithout (Excludes values from array)

Install

npm install array-without-fast

Usage

const arrayWithout = require('array-without-fast');

// ES6 import
import arrayWithout from 'array-without-fast';

const data = [1, 'foo', 10, 25, 'extra', 40, 11, 'apple'];

// Pass exclude values as array
const filteredData = arrayWithout(data, [10, 'extra', 11]);

// Pass exclude values as arguments
const filteredData = arrayWithout(data, 10, 'extra', 11);

// Output
// [1, 'foo', 25, 40, 'apple']

Run tests

npm test

1.2.0

5 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago