Ad
  • Default User Avatar

    I wouldn't agree with their opinion. To me dealing with pure functions that return values is easier. The advantages of using custom for loops over forEach however is that you can use arbitrary control structures (return, break, continue, yield, await) in the loop body.