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

2.10.19 • Public • Published

Places a separator between every value. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: interleave, intermix, interpolate, intersperse.

This is part of package extra-array.

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


array.intersperse(x, v);
// x: an array
// v: separator
const array = require("extra-array");

var x = [1, 2, 3];
array.intersperse(x, 10);
// [ 1, 10, 2, 10, 3 ]

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


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/intersperse.min

Weekly Downloads

146

Version

2.10.19

License

MIT

Unpacked Size

5.23 kB

Total Files

8

Last publish

Collaborators

  • wolfram77