More directive TS

This commit is contained in:
Mo Bitar
2020-04-13 08:03:49 -05:00
parent de99bc6739
commit 38873afa43
21 changed files with 331 additions and 539 deletions

View File

@@ -60,7 +60,7 @@ export function dateToLocalizedString(date: Date) {
}
/** Via https://davidwalsh.name/javascript-debounce-function */
export function debounce(this: any, func: any, wait: number, immediate: boolean) {
export function debounce(this: any, func: any, wait: number, immediate = false) {
let timeout: any;
return () => {
const context = this;