Skip to content

Commit 55c0e6c

Browse files
authored
Merge pull request #99 from SetProtocol/justin_chen-fix-assertion
Fix isNotUndefined assertion
2 parents 851ba18 + 515ba8a commit 55c0e6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "set.js",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "A javascript library for interacting with the Set Protocol v2",
55
"keywords": [
66
"set.js",

src/assertions/CommonAssertions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class CommonAssertions {
7575
}
7676

7777
public isNotUndefined(value: any, errorMessage: string) {
78-
if (!value) {
78+
if (value === undefined) {
7979
throw new Error(errorMessage);
8080
}
8181
}

0 commit comments

Comments
 (0)