Skip to content

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

Function: values()

values<A>(args): Generator<A[Extract<keyof A, string>], void, unknown>

Returns an iterator of the own enumerable string keyed property values of object.

Type parameters

A extends Record<string, unknown>

Parameters

args: A

Returns

Generator<A[Extract<keyof A, string>], void, unknown>

Example

typescript
[...values({ a: 1, b: "2", c: true })]
// [1, "2", true]

More examples

Source

packages/core/src/pipe/lazy/values.ts:14

Released under the MIT License.