Returns an array of all enumerable [key, value] entries for an object, including properties inherited from the prototype chain if all is true.
all
The object to extract entries from
Whether to include properties from the prototype chain
An array of [key, value] tuples
const entries = ownEntries({ a: 1, b: 2 }); Copy
const entries = ownEntries({ a: 1, b: 2 });
Returns an array of all enumerable [key, value] entries for an object, including properties inherited from the prototype chain if
allis true.