grep-from-array

0.9.0 • Public • Published

grep-from-array Build Status

Node module which you can pass an array, and generate a new array containing only values that match a given condition.

Installation

$ npm install --save grep-from-array

Example

var r = grep([1, 100, 50, 30, 5, -5, 0, 20], function (val) {
    return val > 20;
});

console.log(r); // [ 100, 50, 30 ]

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i grep-from-array

    Weekly Downloads

    2

    Version

    0.9.0

    License

    MIT

    Last publish

    Collaborators

    • arthurvr