Last active
July 17, 2023 08:41
-
-
Save codeallday31/d9cc8afdc7be3035159f690e492f6e03 to your computer and use it in GitHub Desktop.
checking value if array
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 isArray(x) { | |
return ((typeof x) == "object") && (x["length"] != null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment