TypeTags .GlobalThis

Overview

The global globalThis property contains the global this value, which is akin to the global object.

Usage

import { TypeTags } from 'typetags'
console.log(TypeTags.GlobalThis)
// → [object globalThis]

Predicate

.isGlobalThis(value)

  • Checks if value is or has a default globalThis type tag.
const { TypeTags } = require('typetags')
let tag = TypeTags.get(globalThis)
TypeTags.isGlobalThis(tag)
// → true
TypeTags.isGlobalThis(globalThis)
// → true

Metadata (TType)

MetadataValue
.typeGlobalThis
.tag[object Object]
.builtin()undefined
.getTag()[object Object]
.hasSpecialArgs()false
.instance()undefined
.instanceTypeOf()object
.info()see more
.isAvailable()true
.isConstructor()false
.isFactory()false
.isFunction()false
.isGlobal()false
.isIterator()false
.isNested()false
.isObject()true
.isPrimitive()false
.isStringifiable()false
.isSyntatic()false
.isTypedArray()false
.ownKeys()[global, clearInterval, clearTimeout, setInterval, setTimeout, Buffer, setImmediate, clearImmediate, ArrayBuffer, Uint8Array, URL, URLSearchParams, TextEncoder, TextDecoder, queueMicrotask, AbortController, process, console, Object, Function, Array, Number, parseFloat, parseInt, Infinity, NaN, undefined, Boolean, String, Symbol, Date, Promise, RegExp, Error, AggregateError, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, URIError, globalThis, JSON, Math, Intl, Int8Array, Uint16Array, Int16Array, Uint32Array, Int32Array, Float32Array, Float64Array, Uint8ClampedArray, BigUint64Array, BigInt64Array, DataView, Map, BigInt, Set, WeakMap, WeakSet, Proxy, Reflect, FinalizationRegistry, WeakRef, decodeURI, decodeURIComponent, encodeURI, encodeURIComponent, escape, unescape, eval, isFinite, isNaN, SharedArrayBuffer, Atomics, WebAssembly]
.toString()function toString() { [native code] }
.typeOf()object

Signature

declare type ITypeTags = {
[key in Types | NestedTypes]: Tags
}
declare interface Predicate {
predicate(value: any): boolean
}

See MDN Web Docs