blockly > utils > string > shortestStringLength

utils.string.shortestStringLength() function

Given an array of strings, return the length of the shortest one.

Signature:

export declare function shortestStringLength(array: string[]): number;

Parameters

Parameter Type Description
array string[] Array of strings.

Returns:

number

Length of shortest string.