open-index/open-npm huggingface dataset:
npm package: @rq/prevent-default-wrapper
Description: Wraps an event or an event handler and calls `preventDefault()`
Author: johnnynotsolucky
Latest version: 0.0.4

# prevent-default-wrapper

Wraps an event or an event handler and calls `preventDefault()`

# Installation

    npm install prevent-default-wrapper

# Usage

    $('a').click(preventDefault(function(e) {
      // ...
    }));
    
    $('a').click(function(e) {
      preventDefault(e);
      
      // ...
    });