1

I know that

if (val) { }

will evaluate to true as long as value is not:

  • null
  • undefined
  • NaN
  • empty
  • string ("")
  • 0
  • false

whats different to

if (!!val) { }

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.