Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 383 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 383 Bytes

nano-throttle

Minimal throttle function with trailing call support. 102 bytes (minified and gzipped) Size Limit controls the size

Install

npm install nano-throttle --save

Usage

import throttle from 'nano-throttle';

throttle(callback, ms);
throttle(callback, ms, false); // without trailing call