1.0.3 • Published 4 years ago
get-property-paths v1.0.3
get-property-paths
Get specify property paths from object.
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',
]