Skip to content

lkowalick/dig-for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

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

About

Digging with dots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published