@extra-iterable/push.min

Adds values to the end. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraIterablePushMin from 'https://cdn.skypack.dev/@extra-iterable/push.min';
</script>

README

Adds values to the end. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Similar: push, pop, shift, unshift.

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/push.
It is exported as global variable iterable_push.
CDN: unpkg, jsDelivr.


iterable.push(x, ...vs);
// x:  an iterable
// vs: values to add
const iterable = require("extra-iterable");

var x = [1, 2];
[...iterable.push(x, 3)];
// [ 1, 2, 3 ]

[...iterable.push(x, 3, 4)];
// [ 1, 2, 3, 4 ]


References