Skip to content
JavaScript utility library embracing functional programming paradigms.
JavaScript HCL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
docs
functions
scripts
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
README.md
babel.config.js
index.mjs
package.json
yarn.lock

README.md

Utils

Build Status

JavaScript utility library

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

Built 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';

Documentation

View the documentation for all available functions.

You can’t perform that action at this time.