Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 931 Bytes

File metadata and controls

20 lines (14 loc) · 931 Bytes

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