Merge pull request #945 from javascript-tutorial/lex111-patch-1

array-methods: wording
This commit is contained in:
Ilya Kantor 2019-04-30 22:06:18 +02:00 committed by GitHub
commit 19196e3e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ That's natural, because `delete obj.key` removes a value by the `key`. It's all
So, special methods should be used.
The [arr.splice(str)](mdn:js/Array/splice) method is a swiss army knife for arrays. It can do everything: add, remove and insert elements.
The [arr.splice(str)](mdn:js/Array/splice) method is a swiss army knife for arrays. It can do everything: insert, remove and replace elements.
The syntax is: