@extra-lists/scan-until.min
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.10 • Public • Published

    Finds key of first entry not passing a test. 📦 😺 🏃 📼 🌔 📜 📰 📘

    Alternatives: scanWhile, scanUntil.

    This is part of package extra-lists.

    This is browserified, minified version of @extra-lists/scan-until.
    It is exported as global variable lists_scanUntil.
    CDN: unpkg, jsDelivr.


    lists.scanUntil(x, ft);
    // x:  lists
    // ft: test function (v, k, x)
    const lists = require('extra-lists');
    
    var x = [['a', 'b', 'c', 'd'], [1, 2, 3, 2]];
    lists.scanUntil(x, v => v % 2 === 0);
    // 'b'                       ^
    
    lists.scanUntil(x, v => v % 8 === 0);
    // undefined


    References

    Install

    npm i @extra-lists/scan-until.min

    DownloadsWeekly Downloads

    11

    Version

    2.2.10

    License

    MIT

    Unpacked Size

    5.64 kB

    Total Files

    7

    Last publish

    Collaborators

    • wolfram77