Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ianjsikes
on Dec 8, 2020
|
parent
|
context
|
favorite
| on:
A Modern JavaScript Tutorial
The cheaty way is `let copy = JSON.parse(JSON.stringify(val))`. Doesn't work for functions or cyclic structures though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: