Platinum Partner

Firefox1.5 Array Extra Methods For Other Browsers

Array.prototype extension

- Array#forEach 
- Array#map 
- Array#filter 
- Array#every 
- Array#some 
- Array#indexOf 
- Array#lastIndexOf 

for IE, Opera, and older Firefox.(I can't test safari)
you can find reference and sample code here


if(!Array.prototype.forEach){
Array.prototype.forEach = function(callback,thisObject){
	for(var i=0,len=this.length;i max) ? max :
			max-(fromIndex||0) || max;
	for(;i>=0;i--)
		if(searchElement === this[i]) return i;
	return -1
}
Array.prototype.every = function(callback,thisObject){
	for(var i=0,len=this.length;i
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}