Skip to content

Commit ad599ff

Browse files
committed
Add %checks to utility null/invalid checkers
1 parent b374965 commit ad599ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jsutils/isInvalid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
/**
1111
* Returns true if a value is undefined, or NaN.
1212
*/
13-
export default function isInvalid(value: mixed): boolean {
13+
export default function isInvalid(value: mixed): boolean %checks {
1414
return value === undefined || value !== value;
1515
}

src/jsutils/isNullish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
/**
1111
* Returns true if a value is null, undefined, or NaN.
1212
*/
13-
export default function isNullish(value: mixed): boolean {
13+
export default function isNullish(value: mixed): boolean %checks {
1414
return value === null || value === undefined || value !== value;
1515
}

0 commit comments

Comments
 (0)