@ungap/own-keys

A basic Reflect.ownKeys polyfill

Usage no npm install needed!

<script type="module">
  import ungapOwnKeys from 'https://cdn.skypack.dev/@ungap/own-keys';
</script>

README

The Reflect.ownKeys method for legacy.

Build Status Coverage Status

It returns Reflect.ownKeys, eventually including symbols too, if the browser is compatible.

import ownKeys from '@ungap/own-keys';

ownKeys({a, 1}); // ['a']

Compatible with every engine.