Skip to content

ibanishapurr/project2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotpather

Utility for traversing objects based on dot paths

usage

var dotpather = require('dotpather'),
    renderer = dotpather('whatever.route.you.want'),
    result = renderer({ whatever: { route: { you: { want: 'bingo' } } } });

console.log(result); // "bingo"

var badResults = renderer({}) || renderer() || renderer(null);

console.log(badResults); // "undefined"

license

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published