/own-keys

A basic Reflect.ownKeys polyfill

Primary LanguageJavaScript

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.