Conditional expressions instead of if statement

52 Views Asked by At

As I understand

b && "" !== b && (a[b] = this);

is just the same as

if(b && "" !== b) a[b] = this;

Are these syntax forms equivalent?

0

There are 0 best solutions below