JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14931
  • Score
    100M100P100Q131255F
  • License MIT

Parse js object paths using both dot and bracket notation. Stringify an array of properties into a valid path.

Package Exports

  • objectpath

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (objectpath) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ObjectPath

Parse js object paths using both dot and bracket notation. Stringify an array of properties into a valid path.

Parse a Path

ObjectPath.parse('a[1].b.c.d["e"]["f"].g')
// => ['a','1','b','c','d','e','f','g']

Build a Path

ObjectPath.parse('a[1].b.c.d["e"]["f"].g')
// => ['a','1','b','c','d','e','f','g']