4 ms·
CoffeeScript can't help you there.
by MatthewPhillips 14y ago
CoffeeScript can't help you there.
- jcampbell1 14y agoIt can and does. Coffeescript will never write: ["dog","cat"].forEach(function(animal){ console.log(animal) }); Which will run just fine on your development browser, but will break for real customers. FYI, I don't use coffeescript, but I am at least aware of some problems with Javascript.
- MatthewPhillips 14y agoCoffeeScript will write that if you tell it to: [1, 2].forEach (i) => alert i
- oinksoft 14y agoArray.prototype.forEach and friends are trivial to shim and shouldn't be broken for anybody.
- emil0r 14y agoBut jQuery can. Which was the argument.