Skip to content

Adds support for the Array.prototype.find() function to Internet Explorer

Notifications You must be signed in to change notification settings

Spetnik/ie-Array.find

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

ie-Array.find

Adds support for the Array.prototype.find() function in Internet Explorer

In order to add the functionality of array.find() to internet explorer, add this to the top of your script:

if(typeof Array.prototype.find === 'undefined'){
	Array.prototype.find = function(callback, thisArg){
		for(var i = 0; i < this.length; i++){
			if(callback.call(thisArg || window, this[i], i, this))
				return this[i];
		}
		return undefined;
	};
}

About

Adds support for the Array.prototype.find() function to Internet Explorer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published