obj-merge
accumulate some object properties
usage
var objm = var cliOptions = flags: 'norecurse' 'skipdotfiles' files: 'good.md' cat: 'Black Cat' var configOptions = flags: 'verbose' 'debug' book: name: 'Pet Sematary' var misc = flags: 'makeabeep' files: 'test.txt' book: true console // => /*{ flags: ['norecurse', 'skipdotfiles', 'verbose', 'debug', 'makeabeep'] , files: ['good.md', 'test.txt'] , book: [{name: 'Pet Sematary'}, true] , cat: 'Black Cat'}*/
throw any number of objects at it (even 0) and it will return an object with all of their top-level keys combined.
license
MIT