You-Dont-Know-JS icon indicating copy to clipboard operation
You-Dont-Know-JS copied to clipboard

view shallow copy output

Open Jeroendevr opened this issue 3 years ago • 1 comments

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:

Jeroendevr avatar Jan 26 '22 09:01 Jeroendevr

Not sure if I want to add this or not, but I'll keep the suggestion around to consider for future revisions.

getify avatar Feb 04 '22 14:02 getify