@extra-array/get.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Gets value at index. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: get, getAll, getPath.
Similar: get, set, remove.

This is part of package extra-array.

This is browserified, minified version of @extra-array/get.
It is exported as global variable array_get.
CDN: unpkg, jsDelivr.


array.get(x, i);
// x: an array
// i: index (-ve: from right)
const array = require("extra-array");

var x = [2, 4, 6, 8];
array.get(x, 1);
// 4

array.get(x, 3);
// 8


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/get.min

Weekly Downloads

380

Version

2.10.19

License

MIT

Unpacked Size

4.95 kB

Total Files

8

Last publish

Collaborators

  • wolfram77