Skip to main content

Function: entries()

Returns an iterable containing the entries of object.

This differs from Map.prototype.entries in that the returned iterable can be iterated multiple times and differs from Object.entries in that the returned iterable is opaque.

entries(object)

entries<Key, Value>(object): Iterable<[Key, Value], any, any>

Returns an iterable containing the entries of object.

This differs from Map.prototype.entries in that the returned iterable can be iterated multiple times and differs from Object.entries in that the returned iterable is opaque.

Type Parameters

Key

Value

Parameters

object

object.entries

Returns

Iterable<[Key, Value], any, any>

Defined in

generators.d.ts:49

entries(object)

entries<Key, Value>(object): Iterable<[Key, Value], any, any>

Returns an iterable containing the entries of object.

This differs from Map.prototype.entries in that the returned iterable can be iterated multiple times and differs from Object.entries in that the returned iterable is opaque.

Type Parameters

Key extends string | number | symbol

Value

Parameters

object: Readonly<Record<Key, Value>>

Returns

Iterable<[Key, Value], any, any>

Defined in

generators.d.ts:52