JSPM

@writetome51/array-get-merged-arrays

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

Returns multiple arrays concatenated into one array

Package Exports

  • @writetome51/array-get-merged-arrays/getMergedArrays

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

Readme

Returns all arrays inside theArrays concatenated into one array:

let theArrays = [[1,2], [3,4], [5,6], [7,8]];

let merged = getMergedArrays(theArrays);

merged is now [1,2,3,4,5,6,7,8]

It should be noted that the source array (theArrays, in this case) does not get modified.