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

1.0.2 • Public • Published

swallowify

Blazing Fast

Stop propagation of the current event.

Install

$ npm install --save swallowify

Usage

const swallowify = require('swallowify');
 
const eventfulFunction = () => {
  /// Much STUFF
}
 
const swallowPropagationClick = swallowify(eventfulFunction);
 

Package Sidebar

Install

npm i swallowify

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

1.46 kB

Total Files

4

Last publish

Collaborators

  • jonhni