TypeTags .Arguments

Overview

arguments is an Array-like object accessible inside functions that contains the values of the arguments passed to that function.

Usage

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

Predicate

.isArguments(value)

  • Checks if value is or has a default arguments type tag.
const { TypeTags } = require('typetags')
let tag
;(function any() {
tag = TypeTags.get(arguments)
return
})()
TypeTags.isArguments(tag)
// → true
TypeTags.isArguments(arguments)
// → true

Metadata (TType)

MetadataValue
.typeArguments
.tag[object Arguments]
.builtin()undefined
.getTag()[object Arguments]
.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()true
.isTypedArray()false
.ownKeys()[0, 1, 2, 3, 4, 5, length, callee]
.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