Consider this scenario with a JavaScript array:
let x = someNumber;
let y = someOtherNumber;
let myArray = // create new x by y Array;
What is the most efficient method to extract a column (as opposed to a row) from this array?
Example structure:
getColumn = function(anArray, columnNumber){
// check if column number exists in array
// if it does, retrieve the column
// if not, return null
}