-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.cson
41 lines (40 loc) · 813 Bytes
/
types.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
".source.js, .source.jsx, .source.ts":
"String":
prefix: "S"
body: "String"
"Symbol":
prefix: "Sy"
body: "Symbol('${1:name}')"
"Boolean":
prefix: "B"
body: "Boolean"
"Number":
prefix: "N"
body: "Number"
"Object":
prefix: "O"
body: "Object"
"Array":
prefix: "A"
body: "Array"
"Date":
prefix: "D"
body: "Date"
"RegExp":
prefix: "Rx"
body: "RegExp"
"Promise":
prefix: "P"
body: "Promise"
"typeof equal to":
prefix: "tof"
body: "typeof ${1:source} === '${2:value}'"
"typeof not equal to":
prefix: "tofi"
body: "typeof ${1:source} !== '${2:value}'"
"instanceof":
prefix: "iof"
body: "${1:source} instanceof ${2:Object}"
"Array.isArray()":
prefix: "ia"
body: "Array.isArray(${1:source})"