JSPM

merge-array

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q30749F
  • License MIT

Merge arrays in to the first array

Package Exports

  • merge-array

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-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

merge-array Build Status

Merge arrays in to the first array

Install

$ npm install --save merge-array

Usage

var mergeArray = require('merge-array');
var arr = ['foo'];

mergeArray(arr, ['bar']);
console.log(arr);
//=> ['foo', 'bar']

mergeArray(arr, ['hello'], ['you']);
console.log(arr);
//=> ['foo', 'bar', 'hello', 'you']

API

mergeArray(input, array, [array, ...])

input

Type: array

Array to merge in to.

array

Type: array

Array to merge in to the first array.

License

MIT © Andreas Gillström