Ah interesting one of those cases where this could be one of a few languages. I was reading it as JS.
Ah interesting one of those cases where this could be one of a few languages. I was reading it as JS.
Yea uh is this actually equivalent? In all of those other cases you’re checking if a is null and in the last case my understanding is it is checking to see if a is falsely. In the case that a is 0, or undefined, or an empty array or any other kind of non null falsey value, then the behavior would be different.
Nah this isn’t the way, friend. Instead of adding a bunch of useless anys all over the place, start typing in one part of the application and exclude the rest using a path pattern. Or simply allow .js and only change the extension for files you’ve typed. Doing this is just wasting time and creating false assurances of type safety.
It’s not that hard to define correct, meaningful types. Often vscode already has implicitly determined them for you; just mouseover the variable.
Is your point that you’re more likely to experience security vulnerabilities when using FOSS? Cause past a certain point of development that’s not generally the case.
It’s a react component and that would be the proper way to give a numerical value in jsx