Dublicate array items using recursion instead of for loop : // This my wrong code , what is the right??`// This my wrong code , what is the right??
function dubArr(arr){
	newArr=[];

	if(arr.length===0){
		return newArr;
	}
	newArr.push(2*arr[0]);
	arr.shift();
    dubArr(arr);
    return newArr;
}`
