Javascript array of object to array of string, simpler way?
arrays, javascript
Solution
Ext.each( columnsInfo, function(elem){
justColumnNames.push(elem.name);
});
Problem
I am so used to the syntactic sugar of C# (and not as used to javascript as I want to) that I find this very verbose. Is there any better way to do this? ``` var justColumnNames = new Array(); for( i= 0; i< columnsInfo.length; i++) { justColumnNames[i] = columnsInfo[i].Name; } ``` (BTW I have the Extjs available in the page, and I cant really use any other library) Thanks