js nested Array get first array last elment,second array second element and 3 array first element

javascript multidimensional Array get first array last elment,second array second element and 3 array first element
input array=[[1,2,3],[4,5,6],[7,8,9]];
output= [3,5,7];

how to get output with loop in multidimensional array