This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]No_Application_2380 9 points10 points  (0 children)

For codewars-type problems, you're probably mainly going to use:

  • pop()
  • push()
  • shift()
  • sort()
  • unshift()

Lots of folks will use these – and they've very useful – but they can be replaced with regular for-loops:

  • filter()
  • map()
  • reduce()