/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (typeof ArrayUtilites == "undefined" || !ArrayUtilites) { var ArrayUtilites = {}; } ArrayUtilites.each = (Array.prototype.forEach) ? function (a, f, o) { Array.prototype.forEach.call(a, f, o || ArrayUtilites); return ArrayUtilites; } : function (a, f, o) { for (var i = 0, it; it = a[i]; i=i+1) { f.call(o || ArrayUtilites, it, i, a); } return ArrayUtilites; };