Created
December 4, 2018 21:17
-
-
Save liuxd/fd377d4747dfc0f9e50b535d23c2ecba to your computer and use it in GitHub Desktop.
[is_array() in JS]
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
var a = [], b = {}; | |
console.log(Array.isArray(a)); // true | |
console.log(Array.isArray(b)); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment