@ungap/own-keys
v0.2.0
Published
A basic Reflect.ownKeys polyfill
Downloads
88
Readme
The Reflect.ownKeys method for legacy.
It returns Reflect.ownKeys
, eventually including symbols too, if the browser is compatible.
import ownKeys from '@ungap/own-keys';
ownKeys({a, 1}); // ['a']
- CDN via https://unpkg.com/@ungap/own-keys
- ESM via
import ownKeys from '@ungap/own-keys'
- CJS via
const ownKeys = require('@ungap/own-keys')
Compatible with every engine.