concat-object
Concatenate object property values into arrays
Useful for creating form data objects that could easily be turned into query strings.
Install
$ npm install concat-object
Usage
const querystring = ;const concatObject = ; ;//=> {a: ['foo', 'bar'], b: ['unicorn', ['foo']]} querystring;//=> 'a=foo&a=bar'
API
concatObject(object, [object, ...])
object
Type: Object
Assigns properties of object
into arrays in a new object.
License
MIT © Kevin Martensson