Files
lcbp3.np-dms.work/frontend/node_modules/get-own-enumerable-keys/index.js
2025-09-21 20:29:15 +07: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)),
];
}