RunKit + npm: lodash

node v10.24.1
version: master
endpointsharetweet
const lodashThrottle = require("lodash.throttle") const {throttle} = require("throttle-debounce") const throttleIt = require('throttleit'); const pThrottle = require("p-throttle") const l = lodashThrottle((args) => { console.log('lodash ' + args) }, 1000); l(1); l(2); l(3); l(4); const td = throttle(1000, false, (args) => { console.log('throttle-debounce ' + args) }); td(1); td(2); td(3); td(4); const ti = throttleIt((args) => { console.log('throttleIt ' + args) }, 1000); ti(1); ti(2); ti(3); ti(4); const pt = pThrottle((args) => { console.log('p-throttle ' + args) }, 1, 1000); pt(1); pt(2); pt(3); pt(4);
Created from: https://npm.runkit.com/lodash
Loading…

no comments

    sign in to comment