get-property-paths

Get specified property paths from object.

Usage no npm install needed!

<script type="module">
  import getPropertyPaths from 'https://cdn.skypack.dev/get-property-paths';
</script>

README

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