• From the haystack, will find the closest value to the needle

    Parameters

    • needle: string

      what the user provided - find results similar to this

    • haystack: string[]

      possible results to search against

    Returns string