@extra-array/concat-update
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

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

Alternatives: concat, concat$.
Similar: concat, join.

This is part of package extra-array.


array.concat$(x, ...ys);
// x:  an array (updated)
// ys: arrays to append
// → x
const array = require("extra-array");

var x = [1, 2];
var y = [3, 4];
array.concat$(x, y);
// [ 1, 2, 3, 4 ]

x;
// [ 1, 2, 3, 4 ]

var x = [1, 2];
array.concat$(x, y, y);
// [ 1, 2, 3, 4, 3, 4 ]


References

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @extra-array/concat-update

      Weekly Downloads

      382

      Version

      2.10.19

      License

      MIT

      Unpacked Size

      4.01 kB

      Total Files

      8

      Last publish

      Collaborators

      • wolfram77