get-property-paths

1.0.3 • Public • Published

get-property-paths

Get specify property paths from object.

Inline docs Build Status Coverage Status

Examples

Basic Useage

import getPaths from 'get-property-paths';

const obj={
  a: {
    b: {
      c: 1,
    },
  },
  d: [{ c: 2 }],
};

getPaths(obj);
[
  'a.b.c',
  'd.0.c',
]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i get-property-paths

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

6.58 kB

Total Files

7

Last publish

Collaborators

  • zhso