NPM Smell 🍑💨

trivial and outdated NPM packages

arr-filter outdated npm logo

Reimplements the native Array.prototype.filter() method.

Weekly Downloads
559,780
Dependencies
2
Latest Release
9 years ago
Switch to the native implementation.
Outdated
natively supported
since 13 years (chrome, firefox, safari, nodejs)

Dependency Tree

  • arr-filter @1.1.2 (2)
    • make-iterator @1.0.1 (1)
      • kind-of @6.0.3

About

This dependency reimplements the native Array.prototype.filter() method. It is supported by all modern browsers and Node.js versions since ES5 (2009).

Further this dependency relies on 2 dependencies:

The Array.prototype.filter() method creates a new array with all elements that pass the test implemented by the provided function.

// Show all elements that are greater than 10
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const filtered = arr.filter(element => element > 10);
console.log(filtered); // []