Get unlimited public & private packages + team-based management with npm Teams.Learn more »

deep-key-filter

1.0.0 • Public • Published

deep-key-filter

Install

npm install --save deep-key-filter

Usage

var deepKeyFilter = require('deep-key-filter');
var obj = {a: 1, b: 2, c: 3};
console.log(deepKeyFilter(obj, 'b')); // Filters all 'b' keys
console.log(deepKeyFilter(obj, key => key === 'c')); // Filters all 'c' keys

Install

npm i deep-key-filter

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar