by shaunxcode · 14y ago · 0 comments
$(window).scroll _.throttleKV
func: -> console.log "This print's at most every 500ms"
wait: 500
Nice thing about that is you don't have to rememeber arg order (though you do have to remember the kv names). In coffee though you have less commas, feels nearly smalltalkish.There's probably a way to programmatically add that for every underscore function, but there's probably not a _good_ way...