Skip to content

Instantly share code, notes, and snippets.

@mprambadi
Created November 28, 2018 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mprambadi/604524d963e0d3f812a113de335da6a7 to your computer and use it in GitHub Desktop.
Save mprambadi/604524d963e0d3f812a113de335da6a7 to your computer and use it in GitHub Desktop.
Debounce Input
function debounce(a,b,c){var d,e;return function(){function h(){d=null,c||(e=a.apply(f,g))}var f=this,g=arguments;return clearTimeout(d),d=setTimeout(h,b),c&&!d&&(e=a.apply(f,g)),e}}
    setSearchTerm = debounce(searchTerm => {
        this.setState({ searchTerm })
    }, 1000)
@novandri511
Copy link

Mau tanya apkah boleh menggunakan compiler online? karena saya harus menginstal roslyn terlbh dulu yg mmebutuhkan waktu juga

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment