Function findFirstOrNullBy

  • Searches for the first element through an array of objects, strictly comparing find with the result of select.

    Returns undefined if no element matches.

    This use strict comparison (not deep equal) and sequential search.

    Type Parameters

    • T

    • V

    Parameters

    • array: T[]

      The array to work on

    • find: V

      The value to search through the array

    • select: ArrayMapper<T, V>

      The selector which should be applied to compare with find

    Returns T | undefined

Generated using TypeDoc