/denest

Extract nested values from Javascript objects and arrays

Primary LanguageJavaScript

Denest

Usage

var denest = require('denest');
denest({a:{b:['blargh', {c: 'bleep'}]}}, 'a.b[1].c');

Will return 'bleep'.

Tests

npm test

100% code coverage, let's keep it that way.