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 ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.0
    1

Package Sidebar

Install

npm i grep-from-array

Weekly Downloads

1

Version

0.9.0

License

MIT

Last publish

Collaborators

  • arthurvr