• This project
    • Loading...
  • Sign in

2019-2-OpenSourceSW / YTMT

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • YTMT
  • node_modules
  • throttleit
  • example.js
  • 윤혜원's avatar
    카카오 로그인 성공! · 30ee00a8
    30ee00a8
    윤혜원 authored 2018-11-27 22:10:32 +0900
example.js 221 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14

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);