The Reflect.ownKeys method for legacy.

April 16, 2020 ยท View on GitHub

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.