Are you means?
const base = { a: { b: [1,2,4], c: 'call me c' }, d: p => p * 2, get orig(){ return base} }; const result = deepCopy(base);
test cases (mandatory true)
result.a !== test.a result.a.b !== test.a.b result.a.c === test.a.c result.d !== test.d result.d(42) === test.d(42) test.orig === test result.orig === test result.orig !== result
This is awesome! Thanks for also adding the test cases
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Are you means?
test cases (mandatory true)
This is awesome! Thanks for also adding the test cases