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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -