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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -