• Find the best matching Salesforce field name for the

    Type Parameters

    • T

    Parameters

    • fields: T[]

      Array of fields to search in

    • fieldName: string

      parameter in an array of fields

    • fieldNameAccessor: ((field) => string)
        • (field): string
        • Parameters

          • field: T

          Returns string

    Returns T | undefined

    field name as found in the array or undefined when no matching field name is found