npm, or node js by extension, is famous (infamous?) for having a library for however simple something is to implement. For example a whole library to trim spaces of a string, but only for the left side. Here the joke takes it to the extreme and even import numbers, if conditions, etc., features that are already available in the core language, from external npm libraries, and use that to write a code snippet.
Coding noob here. What am I looking at? I want to laugh too. :(
npm, or node js by extension, is famous (infamous?) for having a library for however simple something is to implement. For example a whole library to trim spaces of a string, but only for the left side. Here the joke takes it to the extreme and even import numbers, if conditions, etc., features that are already available in the core language, from external npm libraries, and use that to write a code snippet.
My favorite was IsEven. An entire library to tell you if a number is even. And then IsOdd, that does the opposite, which takes IsEven as a dependenxy.
Only cowards use the NOT operator
That’s…amazing haha thank you for your reply!
Bad JavaScript Code to make fun of npm.
But it is just bad code and consequently it weakens the critic that npm deserves.
Everything is from an imported library
I for one support local libraries. They’re an invaluable resource for the community and I support them 100%