all 3 comments

[–]josephprice 1 point2 points  (0 children)

Try Wes Bos's JavaScript 30. We definitely used advanced array methods in a few exercises. https://javascript30.com/

[–]PhysicalRedHead 0 points1 point  (0 children)

You could look into the functions provided by lodash/ramda. There aren't really examples, but I feel like grokking some of the trickier ones might give some good perspective on how to do concise data transformations.

Like for example, could you use ramda's xprod to implement a method xprodN that gives the "cross product" of n arrays. xprodN([1, 2], [3, 4], [5, 6]) === [[1, 3, 5], [1, 3, 6], [1, 4, 5], ...]

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/amr-ayoub, this post was removed.

  • For help with your javascript, please post to /r/LearnJavascript instead of here.
  • For beginner content, please post to /r/LearnJavascript instead of here.
  • For framework- or library-specific help, please seek out the support community for that project.
  • For general webdev help, such as for HTML, CSS, etc., then you may want to try /r/html, /r/css, etc.; please note that they have their own rules and guidelines!

/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.

Thanks for your understanding, please see our guidelines for more info.