3 ms·
leftPad is an exceptional case because 1° it should have been part of the standard library and 2° it is a library that only contains one function.
by victorNicollet 9y ago
leftPad is an exceptional case because 1° it should have been part of the standard library and 2° it is a library that only contains one function.
- rejschaap 9y agoCalling it a library is a stretch. The whole leftPad controverse makes a pretty good case for rewriting. It would have saved many people a lot of trouble. Also, if you know your langauge, rewriting it is probably faster than finding, installing and using a package.
- scottmf 9y agoThe trouble with leftPad was a flaw of NPM which could have happened with any package.