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:
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: