Created
June 7, 2016 12:41
-
-
Save DeadAlready/1da8ca4261ed9a9b329b1b5fcada688b to your computer and use it in GitHub Desktop.
isarray
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 toString = {}.toString; | |
module.exports = Array.isArray || function (arr) { | |
return toString.call(arr) == '[object Array]'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment