Minimal throttle function with trailing call support. 102 bytes (minified and gzipped) Size Limit controls the size
npm install nano-throttle --save
import throttle from 'nano-throttle';
throttle(callback, ms);
throttle(callback, ms, false); // without trailing call