I have object, which has field id
and text
and possibly more other fields.
There are lots of objects in the array, and I want to convert it to a text array.
This is what I have at the moment. Any prettier solution, possible something LINQ like?
var emails = new Array();
angular.forEach(this.form.Emails, function (email) {
emails.push(email.text);
});