Merge pull request #2814 from kk-source/patch-1

Update article.md
This commit is contained in:
Ilya Kantor 2022-01-21 10:45:35 +03:00 committed by GitHub
commit eb23b2d7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ The two most used data structures in JavaScript are `Object` and `Array`.
- Objects allow us to create a single entity that stores data items by key.
- Arrays allow us to gather data items into an ordered list.
Although, when we pass those to a function, it may need not an object/array as a whole. It may need individual pieces.
Although, when we pass those to a function, it may need not be an object/array as a whole. It may need individual pieces.
*Destructuring assignment* is a special syntax that allows us to "unpack" arrays or objects into a bunch of variables, as sometimes that's more convenient.