TypeTags .Map

Overview

The Map object holds key-value pairs and remembers the original insertion order of the keys. Any value (both objects and primitive values) may be used as either a key or a value.

Usage

import { TypeTags } from 'typetags'
const map = new Map()
let maybeMapTag = TypeTags.get(map)
maybeMapTag === TypeTags.Map
// → true
console.log(maybeMapTag)
// → [object Map]

Metadata (TType)

MetadataValue
.typeMap
.tag[object Map]
.builtin()undefined
.getTag()[object Map]
.hasSpecialArgs()false
.instance()undefined
.instanceTypeOf()object
.info()see more
.isAvailable()true
.isConstructor()true
.isFactory()false
.isFunction()true
.isGlobal()true
.isIterator()false
.isNested()false
.isObject()false
.isPrimitive()false
.isStringifiable()true
.isSyntatic()false
.isTypedArray()false
.ownKeys()[length, name, prototype]
.toString()function toString() { [native code] }
.typeOf()function

Signature

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

See MDN Web Docs