mazey
    Preparing search index...

    Function longestComSubstring

    • Compute the length of the longest common substring of two strings.

      Usage:

      import { longestComSubstring } from "mazey";

      const ret = longestComSubstring("fish", "finish");
      console.log(ret);

      Output:

      3
      

      Parameters

      • aStr: string

        String

      • bStr: string

        String

      Returns number

      Length