Neo's Personal Matrix

    @extra-object/find-all.min
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.5 • Public • Published

    Finds values of entries passing a test. 🏃 📼 📦 🌔 📒

    Alternatives: find, findAll.
    Similar: find, search, searchValue.
    This is part of package extra-object.

    This is browserified, minified version of @extra-object/find-all.
    It is exported as global variable object_findAll.
    CDN: unpkg, jsDelivr.

    object.findAll(x, ft);
    // x:  an object
    // ft: test function (v, k, x)
    const object = require('extra-object');
    
    var x = {a: 1, b: 2, c: 3, d: 4};
    object.findAll(x, v => v % 2 === 0);
    // [ 2, 4 ]       ^           ^
    
    object.findAll(x, v => v % 8 === 0);
    // []

    references

    Install

    npm i @extra-object/find-all.min

    DownloadsWeekly Downloads

    0

    Version

    2.2.5

    License

    MIT

    Unpacked Size

    7.16 kB

    Total Files

    14

    Last publish

    Collaborators

    • wolfram77