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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i get-property-paths

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.58 kB

    Total Files

    7

    Last publish

    Collaborators

    • zhso