I have following array of arrays showing employee name, id and department
var employees = [
["John","001","Sales"]
["Mike","002","Sales"]
["Adam","003","Eng"]
["Sam","004","Sales"]
["Emma","005","Eng"]
];
how can I get specific column from this array based on another column. For example, I would like to get ID numbers column for all 'Eng' department where result would be:
["003","005"]