matt-utils
TypeScript icon, indicating that this package has built-in type declarations

1.4.6 • Public • Published

matt-utils

Some simple shorthands for some js functions and methods

Install

Use npm:

npm i -D matt-utils

Or pnpm

pnpm i -D matt-utils

Usage

Just import the needed functions into your file

import { addEvent, byId } from 'matt-utils'

addEvent( byId( 'some-selector' ), 'click', ( ev ) => {
  console.log( 'click' );
});

Functions

Check the API documentation.

Package Sidebar

Install

npm i matt-utils

Weekly Downloads

235

Version

1.4.6

License

MIT

Unpacked Size

53.3 kB

Total Files

18

Last publish

Collaborators

  • mattiacoll