National Poetry Month

    dotpather

    1.0.0 • Public • Published

    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

    Install

    npm i dotpather

    DownloadsWeekly Downloads

    74

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jarofghosts