Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 528 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 528 Bytes

Here's the basic usage of the file that you'll be creating:

var throttle = require('./') // <- this is the file you make;

var sayHi = function() {
  console.log('hi');
};

var throttled = throttle(sayHi, 100);

throttled();
throttled();
throttled();
throttled();

// there should only be two 'hi' messages on the console

More info: http://underscorejs.org/#throttle