src/other/debounce.js
function debounce(handler, delay) {
    if (!handler){
        return;
    }
    if (!delay) {
        delay = 300;
    }
    return _.debounce(handler, delay);
}
function debounce(handler, delay) {
    if (!handler){
        return;
    }
    if (!delay) {
        delay = 300;
    }
    return _.debounce(handler, delay);
}
function debounce ( handler , delay ) { if ( ! handler ) { return ; } if ( ! delay ) { delay = 300 ; } return _ . debounce ( handler , delay ) ; }
debounce a function, the default dalay is 300ms

{{ func | debounce(300) }}
debounce a function the default dalay is 300ms