Skip to content

jarofghosts/dotpather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotpather

Build Status npm install npm version js-standard-style License

Utility for looking up object properties based on dot-paths

usage

var dotpather = require('dotpather')

var lookup = dotpather('whatever.route.you.want')

var result = lookup({whatever: {route: {you: {want: 'bingo'}}}})

console.log(result) // "bingo"

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

console.log(badResults) // undefined

license

MIT

About

traverse dot paths for object values

Resources

License

Stars

Watchers

Forks

Packages

No packages published