1.2.0 • Published 6 years ago

array-without-fast v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 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

6 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago