Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
Object.assign creates shallow copy starting from level 2. So its used to create shallow copy generally.
I usually create deep clone using recurtion.
Object.assign doesn't work with nested object
We can use spread operator also right @nisha singla
spread create shallow copy😅
Object assign doesn't help in deep cloning.
Where and when is use deep copy in JavaScript. Thanks
Such As important fact👍
Very informative
Superb
using assignment is not shallow copy
Object.assign creates shallow copy starting from level 2. So its used to create shallow copy generally.
I usually create deep clone using recurtion.
Object.assign doesn't work with nested object
We can use spread operator also right @nisha singla
spread create shallow copy😅
Object assign doesn't help in deep cloning.
Where and when is use deep copy in JavaScript. Thanks
Such As important fact👍
Very informative
Superb
using assignment is not shallow copy