Skip to content

Instantly share code, notes, and snippets.

View imtumbleweed's full-sized avatar
💭
...

Tumbleweed imtumbleweed

💭
...
  • Learning Curve
  • San Francisco, CA
View GitHub Profile
// 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