Temukan kata panjang minimum dalam frasa

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