Skip to content

Commit 6e80995

Browse files
committed
improve jsdoc [skip ci]
1 parent cba343d commit 6e80995

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/core/src/internal/utils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ export const isElement = (node?: Node | UserObject | null): node is Element =>
3434
node?.nodeType === NODE_TYPE.ELEMENT;
3535

3636
/**
37-
* Use this function to check for null or undefined values for objects having falsy values in addition to nullish values:
37+
* Returns true if the input is null or undefined.
3838
*
39-
* - boolean (false)
40-
* - number (0)
41-
* - string (empty)
39+
* **Note**: falsy-but-defined values (false, 0, '') are NOT considered nullish.
40+
* Use this when you must allow falsy values but reject absent ones, generally when the parameter is boolean, number or string.
4241
*
4342
* @private not part of the public API, can be removed or changed without prior notice
4443
*/

0 commit comments

Comments
 (0)