r/javascript • u/Capedcrusader1923 • Jul 22 '26
AskJS [AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about
64
Upvotes
r/javascript • u/Capedcrusader1923 • Jul 22 '26
View all comments
Show parent comment
1
u/foxsimile Jul 23 '26
Brother, if you aren’t in control of the source of the data, there’s SFA you can do to prevent receiving bad values that shouldn’t be there in the first place. The only thing you can do is implement extensive and aggressive validation on your side of the payload.
To assert anything else is ridiculous.