Function entries

  • Returns an array of key/value pairs from an object. (Note: This is just a typed wrapper around the native Object.entries 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

    • source: Readonly<Record<Key, Value>>

      Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

    Returns [Key, Value][]

    An array of (key, value) tuples.

Generated using TypeDoc