sekoyo / debounce.lodash

Typescript debounce and throttle by Lodash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debounce.lodash

NPM Tests Size GZip Size

For when you only need Lodash's debounce and throttle but existing Typescript alternatives are poor imitations.

Only 609 bytes gzipped.

import { debounce, throttle } from 'debounce.lodash'

Or directly in the browser:

import { debounce, throttle } from 'https://www.unpkg.com/debounce.lodash@1.0.0/dist/index.min.js'

The functions are almost identical to the lodash ones and the same tests pass.

About

Typescript debounce and throttle by Lodash


Languages

Language:TypeScript 96.1%Language:JavaScript 3.9%