@extra-array/interleave.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Merges values from arrays. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: interleave, intermix, interpolate, intersperse.

This is part of package extra-array.

This is browserified, minified version of @extra-array/interleave.
It is exported as global variable array_interleave.
CDN: unpkg, jsDelivr.


array.interleave(xs);
// xs: arrays
const array = require("extra-array");

var x = [1, 2, 3, 4];
var y = [10, 20, 30, 40];
array.interleave([x, y]);
// [ 1, 10, 2, 20, 3, 30, 4, 40 ]

var y = [10, 20];
array.interleave([x, y]);
// [ 1, 10, 2, 20, 3, 4 ]


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/interleave.min

Weekly Downloads

1

Version

2.10.19

License

MIT

Unpacked Size

5.43 kB

Total Files

8

Last publish

Collaborators

  • wolfram77