No, it is impossible to build an array of identifiers without a loop.
In case you are interested, you will do this:
var ids = []; for(var i = 0; i < data.length; i++) ids.push(data[i][1]);
For better structural integrity, I would suggest using an array of objects, for example:
data.push({"name": name1, "id": id1, "major":major1}); data.push({"name": name2, "id": id2, "major":major2}); data.push({"name": name3, "id": id3, "major":major3});
Then iterate over it like this:
var ids = []; for(var i = 0; i < data.length; i++) ids.push(data[i].id);
source share