Select mode and move mouse in the area to see result.
function add() { var items = document.getElementById('items'); items.innerHTML += '<div class="item"></div>'; } var throttle = add.throttle(500); var throttleIgnoreLast = add.throttle(500, true); var debounce = add.debounce(500);