Skip to content

flutejs/object-path-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

parse the object property string

Resources

License

Stars

Watchers

Forks

Packages

No packages published