Skip to content

Commit 6983810

Browse files
authored
Merge pull request sadanandpai#1 from Skgtouch/patch-1
Updated code with the correct variable
2 parents 0079195 + 92e0b62 commit 6983810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

challenges/collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ Object.prototype.toString.call(arr) === '[object Array]'
266266

267267
```js
268268
function mergeArray(arr1, arr2 = arr1){
269-
return [...arr, ...arr];
269+
return [...arr1, ...arr2];
270270
}
271271
```
272272

273273
```js
274274
function mergeArray(arr1, arr2 = arr1){
275-
return arr.concat(...arr);
275+
return arr1.concat(...arr2);
276276
}
277277
```
278278

0 commit comments

Comments
 (0)