Like Object.entries, but returns a more specific type which can be less safe.

See ObjectEntry above.

Note that Object.entries collapses all possible values into a single union while objectEntries results in a union of 2-tuples.