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

    Function objectEntries

    • Typed wrapper around Object.entries that preserves key and value types.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The source object.

      Returns [keyof T, T[keyof T]][]

      objectEntries({ a: 1, b: 2 }) // => [["a", 1], ["b", 2]]