preventdefault

0.1.1 • Public • Published

preventDefault

A simple higher order function to pre-prevent default action of an event

Usage

// function to be called by event
function myEventFunction([params]) {}

// wrap function and pass arguments 
preventDefault(myEventFunction, [params])

Readme

Keywords

Package Sidebar

Install

npm i preventdefault

Weekly Downloads

1

Version

0.1.1

License

ISC

Last publish

Collaborators

  • hungrydavid