Javascript expressions is always 'false' error Follow
if you have a function:
function(newValue) {
var booleanNewValue = (!!newValue);
.....
Resharper incorrectly states "!newValue" is always false. This ignores truthy-falsey of javascript. The resultant value of !newValue is entirely dependant on the actual value.
Please sign in to leave a comment.
Hello Chris,
We were not able to reproduce the mentioned warning. Are you able to send me a screenshot of the issue and full code sample to reproduce it?
Thanks!