What does |= do in Javascript? -


this question has answer here:

while trying fix bug in person's code, found line:

affiliationdata.affiliationstatuses |= affiliationstatuses.affiliatedwithcurrentcrmuser; 

what do?

tried find on mdn, searching |= returns 0 results.

bitwise or assignment

shorthand operator:

x |= y 

meaning:

x = x | y 

source


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -