@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function objectValues

    • Typed wrapper around Object.values that preserves the value type.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The source object.

      Returns T[keyof T][]

      objectValues({ a: 1, b: 2 }) // => [1, 2] (typed as number[])