-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathisNot.js
65 lines (62 loc) · 1.42 KB
/
isNot.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
const isThirteen = require("is-thirteen");
const isNot = (x) => {
return {
thirteen: () => !isThirteen(x).thirteen(),
roughly: {
thirteen: () => !isThirteen(x).roughly.thirteen()
},
returning: {
thirteen: () => !isThirteen(x).returning.thirteen()
},
not: {
thirteen: () => !isThirteen(x).not.thirteen()
},
divisible: {
by: {
thirteen: () => !isThirteen(x).divisible.by.thirteen()
}
},
square: {
of: {
thirteen: () => !isThirteen(x).square.of.thirteen()
}
},
greater: {
than: {
thirteen: () => !isThirteen(x).greater.than.thirteen()
}
},
less: {
than: {
thirteen: () => !isThirteen(x).less.than.thirteen()
}
},
within: (y) => {
return {
of: {
thirteen: () => !isThirteen(x).within(y).of.thirteen()
}
}
},
yearOfBirth: () => !isThirteen(x).yearOfBirth(),
plus: (y) => !isThirteen(x).plus(y),
minus: (y) => !isThirteen(x).minus(y),
times: (y) => !isThirteen(x).minus(y),
dividedby: (y) => !isThirteen(x).dividedby(y),
canSpell: {
thirteen: () => !isThirteen(x).canSpell.thirteen()
},
anagramOf: {
thirteen: () => !isThirteen(x).anagramOf.thirteen()
},
backwards: {
thirteen: () => !isThirteen(x).backwards.thirteen()
},
base: (y) => {
return {
thirteen: () => !isThirteen(x).base(y).thirteen()
}
}
}
}
module.exports = isNot;