@grrr/utils

    2.4.2 • Public • Published

    Utils

    Build Status

    JavaScript utility library

    • No dependencies
    • Includes functional and DOM utility functions
    • Lightweight and untranspiled

    Built with ❤️ by GRRR.

    Documentation

    View the documentation for all available functions.

    Installation

    $ npm install @grrr/utils

    Note: depending on your setup additional configuration might be needed, since this package is published with untranspiled JavaScript.

    Usage

    Import a function and invoke it:

    import { closest } from '@grrr/utils';
    
    const findParentFoo = closest(el => el.hasAttribute(`data-foo`));

    Functions can also be imported from the function file itself:

    import closest from '@grrr/utils/functions/closest';

    Keywords

    none

    Install

    npm i @grrr/utils

    DownloadsWeekly Downloads

    299

    Version

    2.4.2

    License

    MIT

    Unpacked Size

    24.3 kB

    Total Files

    46

    Last publish

    Collaborators

    • aapit
    • harmenjanssen
    • ramirohammen
    • martijnnieuwenhuizen