From 5068bc0db105836e778b344ab4a1c68f1ca68c53 Mon Sep 17 00:00:00 2001 From: Sadanand Akshay Pai Date: Wed, 22 Sep 2021 12:16:33 +0530 Subject: [PATCH] Update collections-concepts.md --- challenges/collections-concepts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/collections-concepts.md b/challenges/collections-concepts.md index 3fe4756..ee1133f 100644 --- a/challenges/collections-concepts.md +++ b/challenges/collections-concepts.md @@ -113,7 +113,7 @@ arr.unshift(1, 2); // [1, 2, 3, 4, 5, 6] const arr = [1, 2, 3]; const otherArr = [4, 5, 6]; arr.push(...otherArr); // [1, 2, 3, 4, 5, 6] -arr.unshift(...arr); // [4, 5, 6, 1, 2, 3, 4, 5, 6] +arr.unshift(...otherArr); // [4, 5, 6, 1, 2, 3, 4, 5, 6] ``` ###### Notes