JSFiddle - React, Tailwind, and code Playground

by bittersweetryan

JavaScript

/**

write a function called "throttle" that will return a function that will only one once per n milliseconds.  

The function should accept 3 parameters: 
    1) the function that will be called, 
    2) a waite time (in millisecondss) 
    3) a scope to apply to the new function.
**/