The results is expected (in the naive way at least). You loop just one time instead of two on the array. Now I'm not enough involved in how JS engines work at a lower level to make more hypothesis. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170629/ac3806cb/attachment.html>