a-filter

A simple filter. Recursively filtering an object or array.


Keywords
filter, recursive, object, array
License
MIT
Install
npm install a-filter@0.0.1

Documentation

a-filter

NPM Version LICENSE Build Status Coverage Status dependencies Status devDependencies Status

A simple filter. Recursively filtering an object or array.

Array.prototype.filter for objects. Learn more about Array.prototype.filter.

Installation

npm install a-filter

Usages

const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];

const result = words.filter(word => word.length > 6);

console.log(result);
// expected output: Array ["exuberant", "destruction", "present"]

Related

License

Copyright (c) 2019 dailyrandomphoto. Licensed under the MIT license.