Skip to content

Commit 44ff2c1

Browse files
committed
change logic
1 parent 9265df9 commit 44ff2c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ To solve this problem, you need to define a method.
2828
// The is TypeScript code
2929
function isEquals(a: ArrayBuffer, b: ArrayBuffer) {
3030
if (!(a instanceof ArrayBuffer)) {
31-
throw new TypeError();
31+
return false;
3232
} else if (!(b instanceof ArrayBuffer)) {
33-
throw new TypeError();
33+
return false;
3434
} else if (a === b) {
3535
return true;
3636
} else if (a.byteLength !== b.byteLength) {

0 commit comments

Comments
 (0)