I\'ve got a function which takes in some arguments. But usage of underscore debounce is :
var lazyLayout = _.debounce(calculateLayout, 300);
Bu
Since nobody has written the one liner without extra var and function, I'll do it myself:
var
function
_.debounce(calculateLayout, 300)(a, b);
Debounce function returns another function, so you can call it just afterwards debounce is executed.