Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@grrr/utils

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grrr/utils

JavaScript utility functions, by GRRR.

latest
Source
npmnpm
Version
2.5.1
Version published
Maintainers
4
Created
Source

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

FAQs

Package last updated on 05 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts