-
Notifications
You must be signed in to change notification settings - Fork 1
vitals.is types
Adam Smith edited this page Mar 3, 2016
·
5 revisions
Primitives | JS Objects | DOM Objects | Others |
---|---|---|---|
"null" |
"object" |
"element" |
"empty" |
"undefined" |
"function" |
"document" |
|
"boolean" |
"regexp" |
||
"string" |
"array" |
||
"number" |
"date" |
||
"nan" |
"error" |
||
"arguments" |
Primitives | JS Objects | DOM Objects |
---|---|---|
"nulls" |
"objects" |
"elements" |
"booleans" |
"functions" |
"documents" |
"strings" |
"regexps" |
|
"numbers" |
"arrays" |
|
"nans" |
"dates" |
|
"errors" |
Primitives | JS Objects | DOM Objects |
---|---|---|
"nullMap" |
"objectMap" |
"elementMap" |
"booleanMap" |
"functionMap" |
"documentMap" |
"stringMap" |
"regexpMap" |
|
"numberMap" |
"arrayMap" |
|
"nanMap" |
"dateMap" |
|
"errorMap" |
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" |
"*" |
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" |
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" |
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,