Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 395 Bytes

File metadata and controls

8 lines (7 loc) · 395 Bytes

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.