I am trying to get the length of an array which has objects in. I am using the following test method to loop through the array using the length. But for some reason the length is 0, even though it has 47 Items in it, see screenshot.
Code -
public test() {
console.log(this._metadataModel.Currency);
for (var i = 0; i <= this._metadataModel.Currency.length; i++) {
console.log(i);
}
}
The array
From console I get--