TypeTags .RegExp

Overview

The RegExp object is used for matching text with a pattern.

Usage

import { TypeTags } from 'typetags'
let regex = new RegExp('bar', 'g')
console.log(regex.toString())
// expected output: '/bar/g'
TypeTags.get(regex) === TypeTags.RegExp
// → true
console.log(TypeTags.RegExp)
// → [object RegExp]

Metadata (TType)

MetadataValue
.typeRegExp
.tag[object RegExp]
.builtin()undefined
.getTag()[object RegExp]
.hasSpecialArgs()false
.instance()undefined
.instanceTypeOf()object
.info()see more
.isAvailable()true
.isConstructor()true
.isFactory()true
.isFunction()true
.isGlobal()true
.isIterator()false
.isNested()false
.isObject()false
.isPrimitive()false
.isStringifiable()true
.isSyntatic()false
.isTypedArray()false
.ownKeys()[length, name, prototype, input, $_, lastMatch, $&, lastParen, $+, leftContext, $, rightContext, $', $1, $2, $3, $4, $5, $6, $7, $8, $9]`
.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