entries
entries() function
Returns an iterator of the own enumerable string keyed-value pairs.
Signature:declare function entries<T extends Record<string, any>>(obj: T): Generator<Entries<T, keyof T>, void>;
Example
[...entries({ a: 1, b: "2", c: true })]
// [["a", 1], ["b", "2"], ["c", true]]
see fromEntries