JSFiddle - React, Tailwind, and code Playground

JavaScript

// http://daniel.steigerwald.cz (MIT Licensed)

Array.prototype.each = function(fn, context) {
    for(var i = 0, l = this.length; i < l; i++) {
        fn.call(context || this, this[i], i, this);
    }
};

['a', 'b', 'c'].each(function(item) {
    alert(item);
});