Enumerates the leaves of an object.
Install
$ npm install --save object-leaves
Usage
'use strict';var objectLeaves = ;console;
output:
[ { key: 'foo', value: 'bar', path: [ 'foo' ] },
{ key: 'baz', value: 'boom', path: [ 'baz' ] },
{ key: 'five',
value: 'six',
path: [ 'one', 'two', 'three', 'four', 'five' ] } ]
License
MIT © Andrew Morris