@extra-array/right-update
v2.9.41
Published
Gets values from the right.
Downloads
128
Maintainers
Readme
Gets values from the right. :running: :vhs: :package: :moon: :ledger:
Alternatives: right, right$. Similar: left, middle, right. This is part of package extra-array.
array.right$(x, [n]);
// x: an array (updated)
// n: number of values (1)
// --> x
const array = require('extra-array');
var x = [1, 2, 3];
array.right$(x, 1);
// [ 3 ]
x;
// [ 3 ]
var x = [1, 2, 3];
array.right$(x, 2);
// [ 2, 3 ]