es7-object-polyfill

A polyfill for missing Object.values / Object.entries

Usage no npm install needed!

<script type="module">
  import es7ObjectPolyfill from 'https://cdn.skypack.dev/es7-object-polyfill';
</script>

README

A polyfill for missing Object.values / Object.entries

Installing:

npm install es7-object-polyfill

Usage:

require ('es7-object-polyfill')

It will automatically create Object.values and Object.entries — but only if they're not already defined.

In a browser, without module bundlers

Served from Unpkg CDN:

<script src="https://unpkg.com/es7-object-polyfill"></script>