Update 08_day_objects.md

clarifies the method description of Object.assign, mainly to clarify that it makes shallow copies, also to clarify what each parameter is for the assign method
pull/789/head
evabth 2 years ago committed by GitHub
parent 55d8e3dbc0
commit 9e82d9d75a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -358,7 +358,7 @@ He teaches HTML, CSS, JavaScript, React, Node, MongoDB, Python, D3.js, Meteor, a
There are different methods to manipulate an object. Let us see some of the available methods. There are different methods to manipulate an object. Let us see some of the available methods.
_Object.assign_: To copy an object without modifying the original object _Object.assign(target, ...sources)_: Creates shallow copies of key value pairs that are then added to the target object without modifying the original object
```js ```js
const person = { const person = {

Loading…
Cancel
Save