Skip to content

Commit 20a992e

Browse files
committed
update solve problem to be or not to be
1 parent ebd7364 commit 20a992e

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

2704. to-be-or-not-to-be/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const expect = (val) => {
2+
return {
3+
toBe(valToBe) {
4+
if (val !== valToBe) {
5+
throw "Not Equal"
6+
}
7+
return true
8+
},
9+
notToBe(valNotToBe) {
10+
if (val === valNotToBe) {
11+
throw "Equal"
12+
}
13+
return true
14+
},
15+
}
16+
}

2727. is-object-empty copy/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)