You-Dont-Know-JS
You-Dont-Know-JS copied to clipboard
view shallow copy output
Just a addition so the reader knows what the output of this shallow copy is using the spread operator. As I myself was wondering if there is a difference between var arrCopy = [ ...arr ]; or arrCopy = arr; Specifically quoting these guidelines regarding typos:
I already searched for this issue
Edition: (pull requests not accepted for previous editions) 2 Book Title: get-started Chapter: 3 Section Title: Iterables Topic:
Not sure if I want to add this or not, but I'll keep the suggestion around to consider for future revisions.