indexOfDiff()
Determine where 2 strings begin to differ from each other.
This function is valid in v2.3.0 to v2.24.3. This function has been downloaded 61 times.str1
.str1
matches str2
, -1
will be returned. In all other cases, the first index at which the corresponding character in str1
is not the same as that found in str2
will be returned.