6 ms·Surprisingly, even if you return at the first iteration, it’s O(n) on V8 just to construct the iterator.by paulgb 3y agoSurprisingly, even if you return at the first iteration, it’s O(n) on V8 just to construct the iterator.