Skip to content

Commit b0e6748

Browse files
authored
Update cloning algorithm URL
Url was pointing to a broken page, updated to match the working URL.
1 parent 12ef7fc commit b0e6748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/01-object/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ alert(clone.sizes.width); // 51, see the result from the other one
711711
712712
To fix that, we should use the cloning loop that examines each value of `user[key]` and, if it's an object, then replicate its structure as well. That is called a "deep cloning".
713713
714-
There's a standard algorithm for deep cloning that handles the case above and more complex cases, called the [Structured cloning algorithm](http://w3c.github.io/html/infrastructure.html#safe-passing-of-structured-data). In order not to reinvent the wheel, we can use a working implementation of it from the JavaScript library [lodash](https://lodash.com), the method is called [_.cloneDeep(obj)](https://lodash.com/docs#cloneDeep).
714+
There's a standard algorithm for deep cloning that handles the case above and more complex cases, called the [Structured cloning algorithm](https://html.spec.whatwg.org/multipage/structured-data.html#safe-passing-of-structured-data). In order not to reinvent the wheel, we can use a working implementation of it from the JavaScript library [lodash](https://lodash.com), the method is called [_.cloneDeep(obj)](https://lodash.com/docs#cloneDeep).
715715
716716
717717

0 commit comments

Comments
 (0)