Function fromEntries

  • Returns an object created from an array of key-value tuples. (Note: This is just a typed wrapper around the native Object.fromEntries method)

    Type Parameters

    • Key extends string | number | symbol

      Type of the keys that composed the source.

    • Value

      Type of the values that composed the source.

    Parameters

    • entries: (readonly [Key, Value])[]

      an iterable object that contains key-value entries for properties and methods.

    Returns Record<Key, Value>

    The object created from key-values entries.

Generated using TypeDoc