Function first

  • Returns the first value of given array or object.

    Type Parameters

    • T

    Parameters

    • v: {
          [key: string]: T;
      } | T[]

    Returns T | undefined

Generated using TypeDoc