Skip to content

tsdebug/js-object-copy-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

js-object-copy-practice

This is a basic practice project to understand how object copying works in JavaScript.
It covers:

  • Shallow copy using the spread operator (...)
  • Deep copy using JSON.parse(JSON.stringify(...))
  • Deep copy using Lodash's _.cloneDeep() function

Open the index.html file in your browser and check the console to see how each method behaves.