4

Arrify nodejs module. I always thought, that a modul is something bigger, not this function with 4 lines. Who thinks, that using a module to make an array of a value instead of copying a 4 line snippet to your code is actually a good idea?

Comments
  • 0
    A past self of mine once believed that. Mostly it was because of cross-platform considerations and tests, but for silly things like that that are now features of the language, makes no sense why people still do it.
  • 1
    if it's a snippet it is hard to put that on a cv, whereas you look badass by saying that you "contributed to the open-source community by providing a npm module to simplify array manipulation"
  • 1
    left-pad.
  • 1
    What do you mean? 'require()' is the most important part of modern JavaScript.
Add Comment