There was an error while loading. Please reload this page.
Add values to the end.
Similar: push, pop, shift, unshift.
function push(x, ...vs) // x: an iterable // vs: values to add
const xiterable = require('extra-iterable'); var x = [1, 2]; [...xiterable.push(x, 3)]; // → [1, 2, 3] [...xiterable.push(x, 3, 4)]; // → [1, 2, 3, 4]