-
Notifications
You must be signed in to change notification settings - Fork 24
/
main.js
114 lines (87 loc) · 2.02 KB
/
main.js
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/********************
* HELPER FUNCTIONS *
********************/
/***********************
* ITERATION FUNCTIONS *
**********************/
/*********************************
* TEST SETUP CODE - DON'T TOUCH!*
********************************/
if (typeof makeDino === 'undefined') {
makeDino = undefined
}
if (typeof makeSingular === 'undefined') {
makeSingular = undefined
}
if (typeof truncateSpecies === 'undefined') {
truncateSpecies = undefined
}
if (typeof makeExtinct === 'undefined') {
makeExtinct = undefined
}
if (typeof isCarnivore === 'undefined') {
isCarnivore = undefined
}
if (typeof isExtinct === 'undefined') {
isExtinct = undefined
}
if (typeof isNotExtinct === 'undefined') {
isNotExtinct = undefined
}
if (typeof isTriassic === 'undefined') {
isTriassic = undefined
}
if (typeof isJurassic === 'undefined') {
isJurassic = undefined
}
if (typeof isCretaceous === 'undefined') {
isCretaceous = undefined
}
if (typeof singularizeDinos === 'undefined') {
singularizeDinos = undefined
}
if (typeof truncateDinos === 'undefined') {
truncateDinos = undefined
}
if (typeof makeAllExtinct === 'undefined') {
makeAllExtinct = undefined
}
if (typeof carnivoresOnly === 'undefined') {
carnivoresOnly = undefined
}
if (typeof herbivoresOnly === 'undefined') {
herbivoresOnly = undefined
}
if (typeof extinctOnly === 'undefined') {
extinctOnly = undefined
}
if (typeof notExtinct === 'undefined') {
notExtinct = undefined
}
if (typeof triassicOnly === 'undefined') {
triassicOnly = undefined
}
if (typeof notTriassic === 'undefined') {
notTriassic = undefined
}
module.exports = {
makeDino,
makeSingular,
truncateSpecies,
makeExtinct,
isCarnivore,
isExtinct,
isNotExtinct,
isTriassic,
isJurassic,
isCretaceous,
singularizeDinos,
truncateDinos,
makeAllExtinct,
carnivoresOnly,
herbivoresOnly,
extinctOnly,
notExtinct,
triassicOnly,
notTriassic,
}