Creates object from array of key-value pairs

  • Type Parameters

    • T

    Parameters

    • pairs: [k?: string, v?: T, ...args: unknown[]][]

      Array of [key, value] tuples

    Returns Record<string, T>

    Object with keys and values from pairs