HEAD
Simple, remove the spaces from the string, then return the resultant string.
No examples
function noSpace(x){
return [...x].filter(y => y != ' ').join('')
}
Try it yourself - CodeWars
Simple, remove the spaces from the string, then return the resultant string.
No examples
function noSpace(x){
return [...x].filter(y => y != ' ').join('')
}
Try it yourself - CodeWars