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

2.10.19 • Public • Published

Counts the number of values. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: index, indexRange, size, isEmpty.

This is part of package extra-array.

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


array.length(x, [i], [I]);
// x: an array
// i: start index (-ve: from right) (0)
// I: end index (-ve: from right) (X)
const array = require("extra-array");

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

array.length(x, 1);
// 3

array.length(x, 1, 3);
// 2


References

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.10.19
    1
    • latest

Version History

Package Sidebar

Install

npm i @extra-array/length.min

Weekly Downloads

1

Version

2.10.19

License

MIT

Unpacked Size

5.56 kB

Total Files

8

Last publish

Collaborators

  • wolfram77