@jswork/next-object-filter
v1.0.0
Published
Get new object like array filter.
Downloads
4
Readme
next-object-filter
Get new object like array filter.
installation
npm install -S @jswork/next-object-filter
usage
import '@jswork/next-object-filter';
const env = process.env;
const res = nx.objectFilter(env, function (key, value) {
return key.includes('npm_config');
});
const keys = Object.keys(res);
const allTruthy = keys.every(key => key.includes('npm_config'));
// true
license
Code released under the MIT license.