sesaparcours
    Preparing search index...
    • Given an array of strings, return the length of the common prefix. Words may not be split. Any space after a word is included in the length.

      Parameters

      • array: string[]

        Array of strings.

      • Optionalopt_shortest: number

        Length of shortest string.

      Returns number

      Length of common prefix.