JSFiddle - React, Tailwind, and code Playground

by Ronny

JavaScript

var c = [];
c.push(function test(){alert('hi');});


c.push = function() {
    var b = arguments;
    [].push.apply(c, b);
    for (c, i = 0; i < c.length; i++) {
        if (typeof c[i] === "function") c[i]();
    }
}
   
c.push(function test(){alert('bye');});

c.push(function test(){alert('hmmm');});