Finds the length of the shortest word in a string.
The input string.
Length of the shortest word.
/\s+/
0
shortestWordLength("js utils kit"); // 2shortestWordLength("one three five"); // 3shortestWordLength(""); // 0 Copy
shortestWordLength("js utils kit"); // 2shortestWordLength("one three five"); // 3shortestWordLength(""); // 0
Finds the length of the shortest word in a string.