No description, website, or topics provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
LICENSE
README.md
index.js
package.json

README.md

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