- Notifications
You must be signed in to change notification settings - Fork5
concat$
Subhajit Sahu edited this pageMay 3, 2023 ·30 revisions
Append values from arrays!
functionconcat$(x, ...ys)// x: an array (updated!)// ys: arrays to append
constxarray=require('extra-array');varx=[1,2];vary=[3,4];xarray.concat$(x,y);// → [ 1, 2, 3, 4 ]x;// → [ 1, 2, 3, 4 ]varx=[1,2];xarray.concat$(x,y,y);// → [ 1, 2, 3, 4, 3, 4 ]