TypeTags .Math

Overview

Math is a built-in object that has properties and methods for mathematical constants and functions. It’s not a function object.

Usage

import { TypeTags } from 'typetags'
const instance = Math
console.log(instance.E)
// expected output: 2.718281828459045
TypeTags.Math === TypeTags.get(instance)
// → true
console.log(TypeTags.get(instance))
// → [object Math]

Metadata (TType)

MetadataValue
.typeMath
.tag[object Math]
.builtin()undefined
.getTag()[object Math]
.hasSpecialArgs()false
.instance()undefined
.instanceTypeOf()object
.info()see more
.isAvailable()true
.isConstructor()false
.isFactory()false
.isFunction()false
.isGlobal()true
.isIterator()false
.isNested()false
.isObject()true
.isPrimitive()false
.isStringifiable()true
.isSyntatic()false
.isTypedArray()false
.ownKeys()[abs, acos, acosh, asin, asinh, atan, atanh, atan2, ceil, cbrt, expm1, clz32, cos, cosh, exp, floor, fround, hypot, imul, log, log1p, log2, log10, max, min, pow, random, round, sign, sin, sinh, sqrt, tan, tanh, trunc, E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2]
.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