[Vuejs]-How to have a dynamic time in debounce/throttle?

0👍

thanks to @RoyJ’s comment:

computed:{
    clicked(){
        return _.debounce(this.click, this.debouncing)
    }
},
methods:{
    click(){
       this.$emit('click');
    },
}

Leave a comment