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
// Convert array to string | |
[1,2,3,"hello","there",4,5].toString(); // 1,2,3,hello,there,4,5 | |
// Return the array itself | |
[1,2,3].valueOf(); // [1, 2, 3] | |
// Check if an object or a primitive is an Array | |
Array.isArray([1]); // true | |
Array.isArray( 1 ); // false |