Package Exports
- merge-and-concat
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (merge-and-concat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
merge-and-concat
Merge objects and concatenating arrays inside them
Install
npm install --save merge-and-concat
Usage
import mergeAndConcat from 'merge-and-concat';
mergeAndConcat(
{ hey: 'hey', list: [1, 2] },
{ ho: 'ho', list: [3, 4] },
{ uni: 'corns' }
); // { hey: 'hey', ho: 'ho', uni: 'corns', list: [1, 2, 3, 4] }
// removing dupes
mergeAndConcat(
{ after_script: ['npm run coverage'] },
{ after_script: ['npm run coverage'] }
); // { after_script: ['npm run coverage'] }
API
mergeAndConcat(...objects)
objects
Required
Type: each item is Object
Set of objects
License
MIT © Vladimir Starkov