I have a array of arrays:
[["email", "[email protected]"], ["phone", 123123123], ["address", "street"]]
I want to create array where I will have only first element from every array:
["email", "phone", "address"]
I have something like that:
bigArray.map((field) => {
this.smallArray.add(field[0]);
});
but I got error: Error in event handler for "bigArray": "TypeError: _this.smallArray.add is not a function"
How can I solve this issue?