Napoleon's Penguin Mascot

    @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

    Install

    npm i @extra-array/length.min

    DownloadsWeekly Downloads

    0

    Version

    2.10.19

    License

    MIT

    Unpacked Size

    5.56 kB

    Total Files

    8

    Last publish

    Collaborators

    • wolfram77