Skip to content

Commit

Permalink
update(JS): web/javascript/reference/operators/destructuring_assignme…
Browse files Browse the repository at this point in the history
…nt (#1116)

* Update rebuild script

* translation(JS): Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString (#1030)

* translation(JS): Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString

* Apply suggestions from code review

Co-authored-by: Vitalii Perehonchuk <[email protected]>

Co-authored-by: Vitalii Perehonchuk <[email protected]>

* update(JS): web/javascript/reference/operators/destructuring_assignment

Co-authored-by: Mykola Myslovskyi <[email protected]>
  • Loading branch information
undead404 and AdriandeCita authored Dec 15, 2022
1 parent d927f72 commit ae77836
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Присвоєння з деструктуруванням
slug: Web/JavaScript/Reference/Operators/Destructuring_assignment
page-type: javascript-language-feature
tags:
- Destructuring
- Destructuring_assignment
Expand Down Expand Up @@ -154,7 +155,7 @@ const { b = console.log("hey") } = { b: 2 };

### Решта властивостей

В кінці деструктурування можна поставити решту властивостей `...rest`. Цей патерн збереже всю решту властивостей об'єкта чи масиву в новий об'єкт чи масив.
В кінці деструктурування можна поставити решту властивостей `...rest`. Цей патерн збереже всю решту властивостей об'єкта чи масиву в новий об'єкт або масив.

```js
const { a, ...others } = { a: 1, b: 2, c: 3 };
Expand Down

0 comments on commit ae77836

Please sign in to comment.