@extra-array/length.min

Counts the number of values.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-array/length.min
1412.10.198 months ago3 years agoMinified + gzip package size for @extra-array/length.min in KB

Readme

Counts the number of values. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
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 arraylength.
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