2.5.1 • Published 1 year ago

@grrr/utils v2.5.1

Weekly downloads
425
License
MIT
Repository
github
Last release
1 year ago

Utils

CI

JavaScript utility library

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

Developed with ❤️ by GRRR

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.mjs';

Documentation

View the documentation for all functions and examples of their usage.

Objects & Arrays

Functional

DOM & Browser

Miscellaneous

2.5.0

1 year ago

2.5.1

1 year ago

2.4.2

3 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago