Skip to content

bowen31337/easyDebounce

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published