I am trying to figure out how to determine the data types of copied array elements in my code.
let inputArray = [
{
test: 1,
},
{
test: 2,
},
];
function clone(array: any[]): any[] {
return Array.from(inputArray);
}
let outputArray = clone(inputArray);
outputArray[0].