Skip to content

Instantly share code, notes, and snippets.

View EddieDev's full-sized avatar

Eddie EddieDev

  • ECards Media Ltd
View GitHub Profile
@EddieDev
EddieDev / jcci.js
Created November 24, 2011 21:00 — forked from lennym/jcci.js
Javascript Code Challenge Result. http://eblundell.com/javascript-challenge
Array.prototype.joinProperty = function(method, delim) {
var output = [];
for(var i=0; i < this.length; i++){
if(typeof this[i][method] == 'function'){
output.push(this[i][method]());
} else {
output.push(this[i][method]);
}
}
return output.join(delim);