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

2.10.19 • Public • Published

Gets values from middle. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: left, middle, right.

This is part of package extra-array.

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


array.middle(x, [i], [n]);
// x: an array
// i: start index (0)
// n: number of values (1)
const array = require("extra-array");

var x = [1, 2, 3];
array.middle(x, 1, 1);
// [ 2 ]

array.middle(x, 1, 2);
// [ 2, 3 ]


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/middle.min

Weekly Downloads

19

Version

2.10.19

License

MIT

Unpacked Size

4.95 kB

Total Files

8

Last publish

Collaborators

  • wolfram77