Skip to content

Commit 144a2fe

Browse files
authored
Merge pull request #164 from Kurczok/patch-4
removed => removing
2 parents b11dd79 + 4a2a86e commit 144a2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 1-js/04-object-basics/01-object/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ Additional operators:
719719
- To check if a property with the given key exists: `"key" in obj`.
720720
- To iterate over an object: `for(let key in obj)` loop.
721721
722-
Objects are assigned and copied by reference. In other words, a variable stores not the "object value", but a "reference" (address in memory) for the value. So copying such a variable or passing it as a function argument copies that reference, not the object. All operations via copied references (like adding/removed properties) are performed on the same single object.
722+
Objects are assigned and copied by reference. In other words, a variable stores not the "object value", but a "reference" (address in memory) for the value. So copying such a variable or passing it as a function argument copies that reference, not the object. All operations via copied references (like adding/removing properties) are performed on the same single object.
723723
724724
To make a "real copy" (a clone) we can use `Object.assign` or [_.cloneDeep(obj)](https://lodash.com/docs#cloneDeep).
725725

0 commit comments

Comments
 (0)