Skip to content

Commit 3fdba72

Browse files
committed
✨ Added size and weight functions
1 parent 524298e commit 3fdba72

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

dist/client.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ class EyeJS {
7070
return `${this.val} isn't close to ${actual}, with a precision of ${precision}`
7171
}
7272
}
73+
isLarger(val, not) {
74+
if((this.val > val && not != false) || (not == false && !(this.val > val))) {
75+
return true;
76+
} else {
77+
return `${this.val} isn't larger than ${actual}`
78+
}
79+
}
80+
isSmaller(val, not) {
81+
if((this.val < val && not != false) || (not == false && !(this.val < val))) {
82+
return true;
83+
} else {
84+
return `${this.val} isn't smaller than ${actual}`
85+
}
86+
}
7387
isTrueFor(callback, not) {
7488
if((callback(this.val) && not != false) || (not == false && !callback(this.val))) {
7589
return true;

dist/eye.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,20 @@ class EyeJS {
179179
return `${this.val} isn't close to ${actual}, with a precision of ${precision}`
180180
}
181181
}
182+
isLarger(val, not) {
183+
if((this.val > val && not != false) || (not == false && !(this.val > val))) {
184+
return true;
185+
} else {
186+
return `${this.val} isn't larger than ${actual}`
187+
}
188+
}
189+
isSmaller(val, not) {
190+
if((this.val < val && not != false) || (not == false && !(this.val < val))) {
191+
return true;
192+
} else {
193+
return `${this.val} isn't smaller than ${actual}`
194+
}
195+
}
182196
isTrueFor(callback, not) {
183197
if((callback(this.val) && not != false) || (not == false && !callback(this.val))) {
184198
return true;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
isLarger(val, not) {
2+
if((this.val > val && not != false) || (not == false && !(this.val > val))) {
3+
return true;
4+
} else {
5+
return `${this.val} isn't larger than ${actual}`
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
isSmaller(val, not) {
2+
if((this.val < val && not != false) || (not == false && !(this.val < val))) {
3+
return true;
4+
} else {
5+
return `${this.val} isn't smaller than ${actual}`
6+
}
7+
}

0 commit comments

Comments
 (0)