DEV Community

Discussion on: Some Best Practices of Javascript for clean and better code quality...

Collapse
 
rezi profile image
Tomas Rezac
  1. It is not called nullish collision but nullish coalescing assignment. And this userProfile &&= value does exact opposite than you described. If userProfile has falsy value, then it keeps it, if not, then the value is overwritten by value.