Last active
March 5, 2019 23:51
-
-
Save shedali/5551136 to your computer and use it in GitHub Desktop.
evaluate-whether-value-is-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
var typeIsArray; | |
typeIsArray = Array.isArray || function(value) { | |
return {}.toString.call(value) === '[object Array]'; | |
}; | |
typeIsArray([1,2,3]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment