-
-
Save EddieDev/1392273 to your computer and use it in GitHub Desktop.
Javascript Code Challenge Result. http://eblundell.com/javascript-challenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment