javascript-interview-questions
javascript-interview-questions copied to clipboard
Added deepclone.js implementing a robust deep cloning function
Added a new JavaScript problem: Deep Clone Function
This update introduces deepClone.js, which contains an advanced deep clone implementation commonly asked in technical interviews. The function handles:
- Objects and arrays
- Nested structures
- Dates and RegExps
- Circular references (via WeakMap)
- Primitive and special data types
This addition enhances the repository's collection of high-quality JavaScript interview questions with a practical and frequently tested problem.