Finishing up the array prototypes
Source: http://www.farrisarts.com/demo/framework.js
Twitter ► http://brentfarris.com/twitter
Website ► http://brentfarris.com
GitHub ► http://brentfarris.com/github
source
Finishing up the array prototypes
Source: http://www.farrisarts.com/demo/framework.js
Twitter ► http://brentfarris.com/twitter
Website ► http://brentfarris.com
GitHub ► http://brentfarris.com/github
source
2 comments
Array.prototype.Contains = function(arg) {
if (this.length > 0){
var state = false;
for (var i = 0; i < this.length; i++) {
if (this[i] == arg) {
state = true;
break;
}
}
console.warn(state);
return state
} else {
console.log("Please Provide A Valid Array With Length > 0");
}
}
Would this be ok?
Comments are closed.
Add Comment