Library API
    Preparing search index...

    Function ownEntries

    • Returns an array of all enumerable [key, value] entries for an object, including properties inherited from the prototype chain if all is true.

      Type Parameters

      Parameters

      • json: T

        The object to extract entries from

      • all: boolean = false

        Whether to include properties from the prototype chain

      Returns EntryOf<T>[]

      An array of [key, value] tuples

      const entries = ownEntries({ a: 1, b: 2 });