Javascript expressions is always 'false' error

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.

1 comment
Comment actions Permalink

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?



Please sign in to leave a comment.