Are there plans to develop a method to easily generate a javascript for...in loop like:
var obj = {a: 'a', b: 'b'}
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
doSomething();
}
}
I think a variant of CoffeeScript's solution would be elegant:
for own key in obj {
doSomething();
}
For me, this is the only really crucial thing I find missing from kaffeine. I will probably still end up using (and contributing) to it even with this missing because of how awesome async programming will be with this tool.
Are there plans to develop a method to easily generate a javascript for...in loop like:
I think a variant of CoffeeScript's solution would be elegant:
For me, this is the only really crucial thing I find missing from kaffeine. I will probably still end up using (and contributing) to it even with this missing because of how awesome async programming will be with this tool.