TypeScript
HTML
<div id="app"></div>
TypeScript
// it helps to improve subsequent calls
// and make those calls after passed interval
function debounce(fn, timer) {
// should call first time
let firstTimeCalled = false;
// then should call after timer
return function() {
}
}