Andrey (azangru) wrote,
Andrey
azangru

Map used where, semantically, it should have been forEach. I fucking hate it! Written by a master, too (creator of Preact, works at Google); so presumably he either knew what he was doing, or didn't give a fuck: https://github.com/developit/mitt/blob/master/src/index.js#L59-L60

Not sure what purpose the slice() serves there either.
Subscribe

  • (no subject)

    Yes! I fully empathize. I've been cursing Storybook, and myself for going with it, for the several months I was trying to update to webpack 5. And…

  • (no subject)

    A dig at the hooks syntax, I suppose :-)

  • (no subject)

    Nazi! Alt-right! 8chan! Boo!

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments