Skip to main content
added code relevant to "the second one" from question
Source Link

Well, I believe the second one is more obvious what's going on...

if( that.indexOf('hello') != -1 ) {
}

That's all to it however, both expressions are valid and perfectly ok.

Well, I believe the second one is more obvious what's going on... That's all to it however, both expressions are valid and perfectly ok.

Well, I believe the second one is more obvious what's going on...

if( that.indexOf('hello') != -1 ) {
}

That's all to it however, both expressions are valid and perfectly ok.

Source Link
walther
  • 358
  • 2
  • 9

Well, I believe the second one is more obvious what's going on... That's all to it however, both expressions are valid and perfectly ok.