• Finds the position of the substring in the string, if any, and returns the length of the found subsequence. Unlike indexOf ignores INVISIBLE_SPACE and may fail at maxDistance characters

    Parameters

    • needle: string
    • haystack: string
    • offset: number = 0
    • maxDistance: number = 1

    Returns [number, number]

Jodit PRO

If you like Jodit - try Jodit PRO