Skip to content
Adam Smith edited this page Mar 3, 2016 · 5 revisions

vitals.is Data Types npm version

Data Types

General

Primitives JS Objects DOM Objects Others
"null" "object" "element" "empty"
"undefined" "function" "document"
"boolean" "regexp"
"string" "array"
"number" "date"
"nan" "error"
"arguments"

Arrays

Primitives JS Objects DOM Objects
"nulls" "objects" "elements"
"booleans" "functions" "documents"
"strings" "regexps"
"numbers" "arrays"
"nans" "dates"
"errors"

Hash Maps

Primitives JS Objects DOM Objects
"nullMap" "objectMap" "elementMap"
"booleanMap" "functionMap" "documentMap"
"stringMap" "regexpMap"
"numberMap" "arrayMap"
"nanMap" "dateMap"
"errorMap"

Alias Options

General

Alias Type
"nil" "null"
"str" "string"
"num" "number"
"bool" "boolean"
"obj" "object"
"fn" "function"
"func" "function"
"re" "regexp"
"regex" "regexp"
"arr" "array"
"err" "error"
"args" "arguments"
"elem" "element"
"doc" "document"
"any" "*"

Arrays

Alias Type
"nils" "nulls"
"strs" "strings"
"nums" "numbers"
"bools" "booleans"
"objs" "objects"
"fns" "functions"
"funcs" "functions"
"res" "regexps"
"regexs" "regexps"
"arrs" "arrays"
"errs" "errors"
"elems" "elements"
"docs" "documents"

Hash Maps

Alias Type
"nilMap" "nullMap"
"strMap" "stringMap"
"numMap" "numberMap"
"boolMap" "booleanMap"
"objMap" "objectMap"
"fnMap" "functionMap"
"funcMap" "functionMap"
"reMap" "regexpMap"
"regexMap" "regexpMap"
"arrMap" "arrayMap"
"errMap" "errorMap"
"elemMap" "elementMap"
"docMap" "documentMap"

Special Characters

Char Details Example
"*" value can be any type "*"
`" "` separates multiple type options
"!" marks objects as non-nullable "!stringMap"
"?" marks primitives & functions as nullable "?string"
"=" value may be undefined `"string

-- Happy Developing,

Algorithm IV Logo

Clone this wiki locally