easy-debounce

1.1.1 • Public • Published

easyDebounce

This is a re-created debounce version with less codes in ES6 built with Rollup.

Installation

Node JS (>=8.4.0)

    npm install easy-debounce
    or
    yarn add easy-debounce

browser

<script src="https://unpkg.com/easy-debounce@1.0.2/dist/easyDebounce.umd.js"></script>

Usage

ES Modules

import  debounce from 'easy-debounce'
 

common js

const debounce = require('easy-debounce')
 

browser js

 
var debounce = window.easyDebounce;
 

API

debounce(fn, wait, [ immediate || false ])

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i easy-debounce

Weekly Downloads

3

Version

1.1.1

License

none

Last publish

Collaborators

  • bowen31337