Finden Sie Mindestlängenwort in einer 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
}
Wide-eyed Wolf