@extra-array/left-update
v2.9.41
Published
Gets values from the left.
Downloads
159
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.
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 ]