Answers for "find minimum length word in a phrase"

0

find minimum length word in a phrase

function findShort(s)
{
    return Math.min(...s.split(" ").map (s => s.length)); // minimum
    return Math.max(...s.split(" ").map (s => s.length)); // max - optional
}
Posted by: Guest on October-09-2021

Code answers related to "find minimum length word in a phrase"

Code answers related to "Javascript"

Browse Popular Code Answers by Language