lib: simplify primordial safe generation
Simplify primordial generation using of
ObjectEntries
[!CAUTION] For security reasons regarding prototype pollution, using
of
is generally considered bad practice, but at this point in time, the user does not have access to the prototype of ObjectEntries (object
).