simpler-debounce
An implementation of debounce with significantly less code.
var debounce = windowonresize = { console console}
debounce
debounce(fn, wait)
Creates and returns a new debounced version of the passed function that will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked.