From 7d5a0696ccc642db0d14aae8677ecada40bf85d1 Mon Sep 17 00:00:00 2001 From: Arman Date: Thu, 2 Aug 2018 16:50:59 -0700 Subject: inital commit --- node_modules/throttleit/example.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 node_modules/throttleit/example.js (limited to 'node_modules/throttleit/example.js') diff --git a/node_modules/throttleit/example.js b/node_modules/throttleit/example.js deleted file mode 100644 index a7f0f62..0000000 --- a/node_modules/throttleit/example.js +++ /dev/null @@ -1,14 +0,0 @@ - -var throttle = require('./'); - -function onprogress(n) { - console.log('progress %s%', n); -} - -onprogress = throttle(onprogress, 500); - -var n = 0; -setInterval(function(){ - if (n >= 100) return; - onprogress(n++); -}, 50); -- cgit v1.2.3