File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/core/src/internal Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments