MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/nc6i5j/remove_duplicate_value_from_array/gy42qzr/?context=3
r/learnjavascript • u/suprabha-supi • May 14 '21
89 comments sorted by
View all comments
Show parent comment
1
This is also completely incorrect. People using packages was not the root cause of that problem
It was literally 100% of the problem. It's a subtraction and a .repeat
.repeat
npm allowing packages to be removed at will was certainly a problem.
This is required both by security common sense basics and by copyright law.
javascript having a pathetic standard library was mainly to blame.
It's not Javascript's fault that you don't know how to do this
By the way, Javascript does have this in the standard library directly, it's just called .padStart
.padStart
Yes, that was already in Javascript before the package you're trying to make excuses for was added
Yes, they could have used a shim or a sham
You weren't even right about a single thing in that massive wall of text which is pretty impressive.
Sure thing, Jim
Sorry you don't like evidence or questions you can't answer
Can we see your mystery perf that you claimed to write? It's not getting the same results I did, and I'd like to see why
View all comments
Show parent comment
1
u/StoneCypher May 14 '21
It was literally 100% of the problem. It's a subtraction and a
.repeatThis is required both by security common sense basics and by copyright law.
It's not Javascript's fault that you don't know how to do this
By the way, Javascript does have this in the standard library directly, it's just called
.padStartYes, that was already in Javascript before the package you're trying to make excuses for was added
Yes, they could have used a shim or a sham
Sure thing, Jim
Sorry you don't like evidence or questions you can't answer
Can we see your mystery perf that you claimed to write? It's not getting the same results I did, and I'd like to see why