Ad
  • Custom User Avatar

    Hey, the return in the third line is unnecessary because when the code stumbles upon a return what is does is that it returns the value and then stops execution. Which in this case is the function expression. So the third line never actually gets run. it just returns the function expression and says 'alright my job here is done'. hope this was helpfull in some way :-).

  • Custom User Avatar

    Nesting arrays decreases performence with large arrays but i can see how it is logical here.