Files
arbiter/node_modules/get-own-enumerable-keys/index.js
2025-03-19 22:47:50 -05:00

10 lines
248 B
JavaScript

const {propertyIsEnumerable} = Object.prototype;
export default function getOwnEnumerableKeys(object) {
return [
...Object.keys(object),
...Object.getOwnPropertySymbols(object)
.filter(key => propertyIsEnumerable.call(object, key)),
];
}