You should polyfill your targeted browser environments automatically with polyfill.io, rather than using a non-tailored approach like this ponyfill. Node >= 7 has
Object.entries natively. You probably only need this ponyfill if your targeted environment is Node and is version < 7.
$ npm install object.entries-ponyfill
const entries =// => [ [ 'foo', 123 ], [ 'bar', 456 ] ]