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
Ext.each( columnsInfo, function(elem){
justColumnNames.push(elem.name);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With