@x10.software/deep-pick-value
v1.0.4
Published
A base NPM package for writing a NPM package in ES6
Downloads
57
Readme
deepPickValue
NPM module to deep pick values from nested objects
Basic Usage
import deepPickValue from '@x10.software/deep-pick-value';
const someObject = { level1: { level2: 'somevalue' } };
const value = deepPickValue(someObject, 'level1.level2');
// value is 'somevalue'