JSFiddle - React, Tailwind, and code Playground
by Julian
JavaScript
// Utility function to display log output
function logOutput(output) {
$('body').append("<b>></b> " + output + "<br />");
}
var TinyQ = function() {
this._queue = [];
};
TinyQ.prototype.add = function(func) {
this._queue.push(func);
};
TinyQ.prototype.run = function() {
var args = Array.prototype.slice.call(arguments);
var performFunction = function(index) {
var func = this._queue[index];
var nextFunc = index+1 < this._queue.length ? this._queue[index+1] : null;
var []