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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
nullish collision
butnullish coalescing
assignment. And thisuserProfile &&= value
does exact opposite than you described. IfuserProfile
has falsy value, then it keeps it, if not, then the value is overwritten byvalue
.