After utilizing the inspect code tool in PHPStorm, I received the following message:
'recipient_user.id === app.currentUser.id ? true : false'
can be simplified to
'!!(recipient_user.id === app.currentUser.id)'
I'm wondering: considering that jslint raises concerns about the use of !!
, should I follow PHPStorm's suggestion and make the change in my code? Or is there a better way to rewrite it?