3 ms·
It'll work in JavaScript, too: [socket,window,file].forEach(function(o){o['close']();});
by gliese1337 15y ago
It'll work in JavaScript, too:
[socket,window,file].forEach(function(o){o['close']();});
- michaelhoney 15y agoAnd all of these ways are longer and less clear than the original. Better to write code like Hemingway than like Proust.