summaryrefslogtreecommitdiff
path: root/packages/webapi/src/lib/Object.ts
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2022-03-07 21:37:50 +0000
committerGravatar GitHub Actions <actions@github.com> 2022-03-07 21:37:50 +0000
commit63adaeec3420e68236613848293881721231d58b (patch)
treee1fe3060ae2ddaa39b1c4b88164466c602c39aed /packages/webapi/src/lib/Object.ts
parentf18ee36dc0abdc5c8ec87734de7962966d16fe65 (diff)
downloadastro-63adaeec3420e68236613848293881721231d58b.tar.gz
astro-63adaeec3420e68236613848293881721231d58b.tar.zst
astro-63adaeec3420e68236613848293881721231d58b.zip
[ci] yarn format
Diffstat (limited to 'packages/webapi/src/lib/Object.ts')
-rw-r--r--packages/webapi/src/lib/Object.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/webapi/src/lib/Object.ts b/packages/webapi/src/lib/Object.ts
index 5ad5b1388..cfc1ea4a4 100644
--- a/packages/webapi/src/lib/Object.ts
+++ b/packages/webapi/src/lib/Object.ts
@@ -3,11 +3,12 @@ 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
+ if (exclude.has('Object') || exclude.has('object') || exclude.has('hasOwn'))
+ return
const Class = target.Object || globalThis.Object
@@ -15,6 +16,6 @@ export const initObject = (target: any, exclude: Set<string>) => {
value: hasOwn,
writable: true,
enumerable: false,
- configurable: true
+ configurable: true,
})
}