Merge pull request #129 from shintaroid/patch-1

fix a typo
This commit is contained in:
Ilya Kantor 2017-08-09 23:21:11 +02:00 committed by GitHub
commit ddf05bac4b

View file

@ -4,7 +4,7 @@ Objects allow to store keyed collections of values. That's fine.
But quite often we find that we need an *ordered collection*, where we have a 1st, a 2nd, a 3rd element and so on. For example, we need that to store a list of something: users, goods, HTML elements etc. But quite often we find that we need an *ordered collection*, where we have a 1st, a 2nd, a 3rd element and so on. For example, we need that to store a list of something: users, goods, HTML elements etc.
It not convenient to use an object here, because it provides no methods to manage the order of elements. We cant insert a new property “between” the existing ones. Objects are just not meant for such use. It is not convenient to use an object here, because it provides no methods to manage the order of elements. We cant insert a new property “between” the existing ones. Objects are just not meant for such use.
There exists a special data structure named `Array`, to store ordered collections. There exists a special data structure named `Array`, to store ordered collections.