9

Here are some facts I found out recently when my linter threw some errors. Just wanted to share with the community. Add anything in the commnets that you wanna share that others don't know.

Comments
  • 3
    You can manipulate the array via the second and third arguments (index and array) on forEach and map loops.
  • 3
    The last statements in each explanation seems switched.
  • 2
    This is horrible. You forgot about Array.loopyGroupy
  • 3
    @Voxera
    Functionally it's right. Foreach enumerates and side effects then returns void, map is a method of the Functor type which operates on the data in a T -> R fashion.

    JavaScript blurs the line because it doesn't enforce immutability so the morphism's application is muddied.
  • 0
    What’s that editor?
  • 1
  • 0
    @Sh4d0w ohhhh, it’s like a picture maker. That’s a really really cool concept, looks well done too.
  • 2
    Yes, today there is no need to remember EVERY API in your language. Thanks google for that.

    But that doesn't mean you shouldn't know the freaking APIs of your language!!!! Read the documentation for it!!! Not know the signature of a function it's not the same as not knowing what a function does.
  • 0
    It’s not that there is documentation and specifications for it.
  • 0
    @OmerFlame @highlight
    console.log("Don't forget this");
  • 0
Add Comment