Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view shallow copy output #1776

Open
wants to merge 1 commit into
base: 2nd-ed
Choose a base branch
from
Open

Conversation

Jeroendevr
Copy link

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;
@getify
Copy link
Owner

getify commented Feb 4, 2022

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

@getify getify force-pushed the 2nd-ed branch 12 times, most recently from bf58419 to bae21ee Compare February 17, 2022 00:02
@getify getify force-pushed the 2nd-ed branch 5 times, most recently from 23d8b7b to e909d38 Compare July 16, 2022 14:49
@getify getify force-pushed the 2nd-ed branch 3 times, most recently from 29c2978 to 667c741 Compare August 3, 2022 14:27
@getify getify force-pushed the 2nd-ed branch 6 times, most recently from ec72a23 to 976d472 Compare August 24, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants