JSPM

merge-and-concat

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 864
  • Score
    100M100P100Q99092F
  • License MIT

Merge objects and concatenating arrays inside them

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

NPM version Unix Build Status Windows Build Status Coveralls Status Dependency Status

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