JSPM

@extra-array/right.min

2.8.44
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q72344F
  • License MIT

Gets values from the right.

Package Exports

  • @extra-array/right.min

Readme

Gets values from the right. 🏃 📼 📦 🌔 📒

Alternatives: right, right$.
Similar: left, middle, right.
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 ]

references