You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/05-array-methods/article.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -676,7 +676,7 @@ So `typeof` does not help to distinguish a plain object from an array:
676
676
677
677
```js run
678
678
alert(typeof {}); // object
679
-
alert(typeof []); // same
679
+
alert(typeof []); //object (same)
680
680
```
681
681
682
682
...But arrays are used so often that there's a special method for that: [Array.isArray(value)](mdn:js/Array/isArray). It returns `true` if the `value` is an array, and `false` otherwise.
0 commit comments