Uh oh!
There was an error while loading. Please reload this page.
Fix syntax error in object-copy article - #3179
Conversation
The square brackets in 'Object.assign(dest, src1[, src2, src3...])' results in a syntax error. The correct syntax should be 'Object.assign(dest, src1, src2, src3, ...)', but I've added a srcN, changing it to 'Object.assign(dest, src1, src2, src3, ..., srcN)' to make it more relevant to the explanation found underneath the original code snippet.
How shall we tell people that The same question again and again... |
[ ] ... or, |
@joaquinelio You mean, write it as |
oh! I meant individual format |
iliakan
commented
Oct 2, 2022
even if we make the brackets look different, people who don't know what they mean will still be confused. |
joaquinelio
commented
Oct 2, 2022
yep |
The square brackets in 'Object.assign(dest, src1[, src2, src3...])'
results in a syntax error. The correct syntax should be
'Object.assign(dest, src1, src2, src3, ...)', but I've added a srcN, changing it
to 'Object.assign(dest, src1, src2, src3, ..., srcN)' to make it more relevant
to the explanation found underneath the original code snippet.