I was going through a tutorial recently and I found out this developer kept using && operator to perform if statement. Take a look.
const status = true
function logSomething(){
console.log('hello world');
}
=========if way========================
if(status) logSomething();
===================and way ======================
status && logSomething();
They do the same thing .Thanks for reading