Skip to content

Commit 04c113c

Browse files
authored
👾 smth
1 parent 7964b11 commit 04c113c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ So `typeof` does not help to distinguish a plain object from an array:
676676

677677
```js run
678678
alert(typeof {}); // object
679-
alert(typeof []); // same
679+
alert(typeof []); // object (same)
680680
```
681681

682682
...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

Comments
 (0)