164 views
Function to double array elements
Task condition
Create a function that takes an array (for example, called inputArray) and returns a new array in which each element of the original array appears twice in a row.
Task condition
Create a function that takes an array (for example, called inputArray) and returns a new array in which each element of the original array appears twice in a row.