Skip to content

Instantly share code, notes, and snippets.

View mavriciomart's full-sized avatar
🦄
~

Mauricio Martínez mavriciomart

🦄
~
View GitHub Profile
@mavriciomart
mavriciomart / debounce.js
Created May 7, 2019 20:27
Debounce function for typing indicator
const debounce = (immediateFunc, endFunc, wait) => {
let timeout;
const inmediate = true;
return executedFunction = () => {
const context = this;
const args = arguments;
const later = () => {
timeout = null;

Keybase proof

I hereby claim:

To claim this, I am signing this object: