Documentation
    Preparing search index...

    Function getClosestString

    • Returns the string "closest" to the given target string from the given array of options.

      Parameters

      • targetStr: string
      • options: string[]
      • maximumDistance: number = Number.MAX_SAFE_INTEGER
      • ignoreCasing: boolean = false
      • ignoreSpecialCharacters: boolean = false

      Returns string | null

      null if no options within maximum distance.