Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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',
]

Install

npm i get-property-paths

DownloadsWeekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

6.58 kB

Total Files

7

Last publish

Collaborators

  • avatar