Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

swallowify

jonhni9MIT1.0.2TypeScript support: included

Stop propagation of the current event

stop event propagation, event, propagation, capturing, bubbling, swallow

readme

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);