flatten-object-strict
Flattens a nested object. Throws on collisions.
Install
$ npm install --save flatten-object-strict
Usage
'use strict'; var flattenObjectStrict = ; console // { one: 1, two: 2, three: 3, four: 4 } console; // Error: Duplicate keys found: {// "dup1": [// ".foo.dup1",// ".bar.dup1"// ],// "dup2": [// ".bar.dup2",// ".baz.dup2"// ]// }
License
MIT © Andrew Morris