This file contains 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
function largestNumberOfArrays(array) { | |
return array.map( function (subArray){ | |
return subArray.reduce( function (previous, current) { | |
return (current > previous) ? current : previous; | |
}); |
This file contains 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
/** | |
* First letter in uppercase of each word of a given string | |
*/ | |
function UppercasefirstLetterString(str) { | |
var arr = str.toLowerCase().split(' '); | |
return arr.map( function(letter) { | |
return letter[0].toUpperCase() + letter.slice(1); |
NewerOlder