@extra-array/right-update.min

Gets values from the right.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-array/right-update.min
1402.9.412 years ago2 years agoMinified + gzip package size for @extra-array/right-update.min in KB

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.

This is browserified, minified version of @extra-array/right-update.
It is exported as global variable arrayright$.
CDN: unpkg
, jsDelivr.

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 ]

references