object-path-parse

    0.1.0 • Public • Published

    Build Status Coverage Status NPM version NPM downloads

    var parse = require("object-path-parse")
     
    console.log(parse("a.b.c"))                // ["a","b","c"]
    console.log(parse("a.0.c[0]"))             // ["a","0","c","0"]
    console.log(parse("a.b.x['wfw.efef']"))    // ["a","b","x","wfw.efef"]

    try it in your browser

    API

    • parse(String)

      return the path array

    Install

    npm i object-path-parse

    DownloadsWeekly Downloads

    4

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • zinkey