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
No caso acima, você pode perceber que o método ignora a função e `undefined`.
614
614
615
-
Most often complex data can be serialized, so this method can solve most problems, and as a built-in function, it has the fastest performance when dealing with deep copy. Certainly, you can use [the deep copy function of `lodash` ](https://lodash.com/docs#cloneDeep) when your data contains the above three cases.
615
+
A maioria dos dados conseguem ser serializados, então esse método resolve a maioria dos problemas, e como uma função embutida, ele tem uma performance melhor quando lidando com a cópia profunda. Certamente, você pode usar [the deep copy function of `lodash` ](https://lodash.com/docs#cloneDeep) quando sues dados contém os três casos acima.
616
616
617
-
If the object you want to copy contains a built-in type but doesn’t contain a function, you can use`MessageChannel`
617
+
Se o objeto que você quer copiar contém um tipo embutido mas não contém uma função, você pode usar`MessageChannel`
618
618
```js
619
619
functionstructuralClone(obj) {
620
620
returnnewPromise(resolve=> {
@@ -627,8 +627,8 @@ function structuralClone(obj) {
627
627
var obj = {a:1, b: {
628
628
c: b
629
629
}}
630
-
//pay attention that this method is asynchronous
631
-
//it can handle `undefined` and circular reference object
630
+
//preste atenção que esse método é assíncrono
631
+
//ele consegue manipular `undefined` e referência circular do objeto
0 commit comments