mirror of
https://github.com/LukeHagar/arbiter.git
synced 2025-12-06 20:37:49 +00:00
10 lines
248 B
JavaScript
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)),
|
|
];
|
|
}
|