Node.js: for each … in not working
Unfortunately node does not support for each … in, even though it is specified in JavaScript 1.6. Chrome uses the same JavaScript engine and is reported as having a similar shortcoming. You’ll have to settle for array.forEach(function(item) { /* etc etc */ }). EDIT: From Google’s official V8 website: V8 implements ECMAScript as specified in … Read more