- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5
push$
        Subhajit Sahu edited this page Feb 2, 2021 
        ·
        16 revisions
      
    Adds values to the end. 🏃 📼 📦 🌔 📒
Alternatives: push, push$.
Similar: push, pop, shift, unshift.
array.push$(x, ...vs);
// x:  an array (updated)
// vs: values to add
// --> xconst array = require("extra-array");
var x = [1, 2];
array.push$(x, 3);
// [ 1, 2, 3 ]
x;
// [ 1, 2, 3 ]
var x = [1, 2];
array.push$(x, 3, 4);
// [ 1, 2, 3, 4 ]