Concatenation of Array LeetCode solution in JavaScript

1
var getConcatenation = function (nums) {
2
//spread the nums array twice and return it
3
return [...nums, ...nums];
4
};

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0