3 ms·
This is both an education issue and a std lib issue. There is no need for packages such as "is-number" or "is-odd" when the language already provides the facili
by nostalgeek 8y ago
This is both an education issue and a std lib issue. There is no need for packages such as "is-number" or "is-odd" when the language already provides the facilities it check if a value is a number or is even/odd, yet these packages are downloaded a thousand times a a day because they are dependencies in this or that popular package.
For some the first reflex is to add a dependency instead of spending 5 minutes thinking of simple solutions for their use case. But the latter isn't restricted to the node ecosystem.
The avalanche of useless modules profits mainly to NPM, a for profit organisation operating a closed source package repository which imposed itself on the node project in dubious ways. Even nodejs creator regrets it.