JSFiddle - React, Tailwind, and code Playground
JavaScript
function values_tick(obj){
var timerId = setTimeout(function tick(obj, counter) {
var i = 0;
for(key in obj) {
if(counter == i){
console.log(key , '===', obj[key]);
}
i++;
}
timerId = setTimeout(tick, 2000, obj,counter + 1);
}, 2000, obj, 0);
}
values_tick({a:"one", b:"two", c:"tree" });