Skip to content

Instantly share code, notes, and snippets.

const userName : string = 'devo21'
const toUpperFirstLetter = function([firstLetter , ...rest]) : string{
return firstLetter.toUpperCase() + rest.join()
}
console.log(toUpperFirstLetter(userName))