JSFiddle - React, Tailwind, and code Playground

by Silvestrs Kante

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.5.1/lodash.min.js"></script>

JavaScript

var testFunc = _.debounce(function(){
	test2Func();
},300);

function test2Func(){
	console.log("Function has been called");
}

for(i=0;i<100;i++){
	testFunc();
}