##Usage
var obj = {
a: {
b: {
c: {
d: ['e', 'f', 'g']
}
}
}
};_.deep(obj, 'a.b.c.d[2]'); // 'g'_.deep(obj, 'a.b.c.d[2]', 'george');
_.deep(obj, 'a.b.c.d[2]'); // 'george'var arr = [{
deeply: {
nested: 'foo'
}
}, {
deeply: {
nested: 'bar'
}
}];
_.pluckDeep(arr, 'deeply.nested'); // ['foo', 'bar']Return a copy of an object containing all but the blacklisted properties.
To use underscore-deep, copy the underscore.deep.js file into your project and include it after underscore. It's also available via bower.
$ bower install underscore-deep License: MIT
Author of this code is Dave Furfero (https://github.com/furf), I just needed to convert it to a bower package Original source: https://gist.github.com/furf/3208381