So the kata/problem was: "Simple, given a string of words, return the length of the shortest word(s)."
Example test: findShort("Bitcoin will maybe save the world")
And my solution was:
function findShort(s){
// convert string to array
const strArr = s.split(' ');
// loop through array and find length
const lengthOfWords = strArr.map(string => {
return (string.length);
})
// output length of shortest string
return Math.min(...lengthOfWords);
}