mirror of https://gitee.com/antv-l7/antv-l7
12 lines
384 B
JavaScript
12 lines
384 B
JavaScript
if (typeof Reflect === 'object' && typeof Reflect.ownKeys === 'function') {
|
|
module.exports = Reflect.ownKeys;
|
|
} else if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
module.exports = function Reflect_ownKeys(o) {
|
|
return (
|
|
Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))
|
|
);
|
|
}
|
|
} else {
|
|
module.exports = Object.getOwnPropertyNames;
|
|
}
|