Created
January 4, 2022 19:31
-
-
Save ayeshLK/b8ded808b973965632512099f5929714 to your computer and use it in GitHub Desktop.
This file contains 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
function isNumber(any value) returns boolean { | |
// checks whether the provided value is an `int` or a `float` | |
if value is int || value is float { | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment