@extra-array/right.min
v2.10.19
Published
Gets values from right.
Downloads
298
Readme
Gets values from right. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
This is browserified, minified version of @extra-array/right. It is exported as global variable array_right. CDN: unpkg, jsDelivr.
array.right(x, [n]);
// x: an array
// n: number of values (1)
const array = require("extra-array");
var x = [1, 2, 3];
array.right(x, 1);
// [ 3 ]
array.right(x, 2);
// [ 2, 3 ]