var dig = require('dig-for').dig;
var deeplyNested = { one: { two: { three: { four: 5 } } } };
dig.one(deeplyNested);
// => { two: { three: { four: 5 } } }
dig.one.two(deeplyNested);
// => { three: { four: 5 } }
dig.one.two.three(deeplyNested);
// => { four: 5 }
dig.one.two.three.four(deeplyNested);
// => 5
lkowalick/dig-for
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Digging with dots
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published