projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update to Drupal 8.4.6
[yaffs-website]
/
node_modules
/
throttleit
/
example.js
1
2
var throttle = require('./');
3
4
function onprogress(n) {
5
console.log('progress %s%', n);
6
}
7
8
onprogress = throttle(onprogress, 500);
9
10
var n = 0;
11
setInterval(function(){
12
if (n >= 100) return;
13
onprogress(n++);
14
}, 50);