Just a heads up on your featured iteration example on Javascript array iteration- "For...in" loops are generally NOT recommended for arrays because the order is not guaranteed (which is generally important for arrays). I don't want anyone to get a bad first impression of the product just because of the choice of example.
Hi @robmoore thanks for your comment!
Did you mean "For .. of" or "For .. in"? I've used "For .. of" rather than "For ..in" or any other alternative because it's ES2015+ and because you can break from it using the break keyword whereas with forEach or .map you can't break from it. What do you think?
@robmoore@jadjoubran I agree—the example of using "for...of" is nice, but needs to specify "when the order is not important". From a performance standpoint, to iterate over an array and keep the order preserved, a plain old "for" loop is the best, though it's uglier
Programming Knowledge Map
Duplikit
Programming Knowledge Map
Programming Knowledge Map