You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The looping construct was non-intuitive and I only figured it with a little trial and error and reading your code. To loop through all the colors in your color example I was only successful with the following:
var colors;
for( var i in color.symbols() ) {
var colorInstance = color.symbols()[i];
colors += colorInstance.name + ':' + colorInstance.de + '<br/>';
}
Intuitively I thought the looping would be like this:
var colors;
for( var colorInstance in color ) {
colors += colorInstance.name + ':' + colorInstance.de + '<br/>';
}
My knowledge of javascript is not sufficient to determine whether or not it's possible for enums.js to support that looping construct.
The text was updated successfully, but these errors were encountered:
The looping construct was non-intuitive and I only figured it with a little trial and error and reading your code. To loop through all the colors in your color example I was only successful with the following:
Intuitively I thought the looping would be like this:
My knowledge of javascript is not sufficient to determine whether or not it's possible for enums.js to support that looping construct.
The text was updated successfully, but these errors were encountered: