let test = (arr) => {let y = 0for (let i = 0; y < arr.length; i++) {if (arr[i] === 0) {arr.splice(i, 1)arr.push(0)} else {i++}return arr }