Merge pull request #2058 from arcticmatt/array-patch

5.4 - change 7 basic types to eight basic types
This commit is contained in:
Ilya Kantor 2020-08-27 23:35:29 +03:00 committed by GitHub
commit ba6ae24c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,7 @@ An array is a special kind of object. The square brackets used to access a prope
They extend objects providing special methods to work with ordered collections of data and also the `length` property. But at the core it's still an object.
Remember, there are only 7 basic types in JavaScript. Array is an object and thus behaves like an object.
Remember, there are only eight basic data types in JavaScript (see the [Data types](https://javascript.info/types) chapter for more info). Array is an object and thus behaves like an object.
For instance, it is copied by reference: