Created
June 28, 2025 14:55
-
-
Save new-AF/a932b54cb3e1c97dfce7bc30ed9a4f6c to your computer and use it in GitHub Desktop.
utils for BinarySearchTree.mjs and Node.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isUndefinedOrNull = (val) => { | |
return val === undefined || val === null; | |
}; | |
export const isDefined = (val) => { | |
return val != null && val != undefined; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment