@extra-array/right-update
TypeScript icon, indicating that this package has built-in type declarations

2.9.41 • Public • Published

Gets values from the right. 🏃 📼 📦 🌔 📒

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 ]

references

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @extra-array/right-update

      Weekly Downloads

      5

      Version

      2.9.41

      License

      MIT

      Unpacked Size

      11.1 kB

      Total Files

      29

      Last publish

      Collaborators

      • wolfram77