aboutsummaryrefslogtreecommitdiff
path: root/packages/webapi/src/lib/Object.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/src/lib/Object.ts')
-rw-r--r--packages/webapi/src/lib/Object.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/packages/webapi/src/lib/Object.ts b/packages/webapi/src/lib/Object.ts
deleted file mode 100644
index cfc1ea4a4..000000000
--- a/packages/webapi/src/lib/Object.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import * as _ from './utils'
-
-export const hasOwn = {
- hasOwn(instance: object, property: any) {
- return _.__object_hasOwnProperty(instance, property)
- },
-}.hasOwn
-
-export const initObject = (target: any, exclude: Set<string>) => {
- if (exclude.has('Object') || exclude.has('object') || exclude.has('hasOwn'))
- return
-
- const Class = target.Object || globalThis.Object
-
- Object.defineProperty(Class, 'hasOwn', {
- value: hasOwn,
- writable: true,
- enumerable: false,
- configurable: true,
- })
-}