Skip to content

fx-flow v0.7.0 / pipe/lazy / entries

Function: entries()

entries<A>(args): Generator<Entries<A>, void>

Convert object to iterator.

Type parameters

A extends AnyObject

Parameters

args: A

Returns

Generator<Entries<A>, void>

Example

typescript
const iterator =  entries({a: 1, b: 2})
iterator.next().value = ['a', 1]
iterator.next().value = ['b', 2]
iterator.next().done = true

More examples

Source

packages/core/src/pipe/lazy/entries.ts:16

Released under the MIT License.