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

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

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

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -