JSPM

@extra-array/right

2.5.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35
  • Score
    100M100P100Q73440F
  • License MIT

Gets values from the right.

Package Exports

  • @extra-array/right

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@extra-array/right) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Gets values from the right.

Alternatives: default, update.
Similar: left, middle, right.
This is part of package extra-array.

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