I\'ve got a function which takes in some arguments. But usage of underscore debounce is :
var lazyLayout = _.debounce(calculateLayout, 300);
Bu
You don't need an anonymous function in the middle, arguments will automatically be passed to the original function when you run the debounced version.
var debounceCalculate = _.debounce(calculateLayout, 300);
debounceCalculate(a,b);
As an advantage you don't have to hardcode-bind the arguments in advance
You can try it and if curious just check the source