@extra-array/left-update.min
v2.9.41
Published
Gets values from the left.
Downloads
195
Readme
Gets values from the left. :running: :vhs: :package: :moon: :ledger:
Alternatives: left, left$. Similar: left, middle, right. This is part of package extra-array.
This is browserified, minified version of @extra-array/left-update. It is exported as global variable array_left$. CDN: unpkg, jsDelivr.
array.left$(x, [n]);
// x: an array (updated)
// n: number of values (1)
// --> x
const array = require('extra-array');
var x = [1, 2, 3];
array.left$(x, 1);
// [ 1 ]
x;
// [ 1 ]
var x = [1, 2, 3];
array.left$(x, 2);
// [ 1, 2 ]