next-pick
Creates an object composed of the picked object properties.
installation
npm install -S @feizheng/next-pick
usage
import '@feizheng/next-pick';
const object = {
'a': 1,
'c': 'c-value',
some: {
what: {
and: {
deep: {
one: 1
}
}
}
}
};
const picked = nx.pick(object, ['a', 'c', 'some.what.and.deep.one']);
license
Code released under the MIT license.