You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/12-json/2-serialize-event-circular/task.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,39 +2,39 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Exclude backreferences
5
+
# Виключити зворотні посилання
6
6
7
-
In simple cases of circular references, we can exclude an offending property from serialization by its name.
7
+
У простих випадках циклічних посиланнь ми можемо виключити від серіалізації властивість, через яку воно виникло, за її ім’ям.
8
8
9
-
But sometimes we can't just use the name, as it may be used both in circular references and normal properties. So we can check the property by its value.
9
+
Але іноді ми не можемо просто використовувати назву, оскільки вона може використовуватися як і у циклічних посиланнях, так і в нормальних властивостях. Таким чином, ми можемо перевірити властивість за її значенням.
10
10
11
-
Write `replacer` function to stringify everything, but remove properties that reference`meetup`:
11
+
Напишіть функцію `replacer`, щоб серіалізувати все, але видалити властивості, які посилаються на`meetup`:
0 commit comments