Usage of bitwise OR operator

Hi all,
I’m curios, everywhere in VSF, there is a huge usage of bitwise OR operator. What is a reason behind this usage, and where that price prop can be declared or where is declared? Something with Magento related maybe? Sorry if it is duplicated question …

Anybody :slight_smile: ? just an info I need :slight_smile:

1 Like

These are not “bitwise OR operators”, but rather, Vue filters:. see https://vuejs.org/v2/guide/filters.html for more information.

So the “price” here is not a prop, but rather, a filter that probably does some price related formatting. You can find the source for this filter here:

https://github.com/DivanteLtd/vue-storefront/blob/master/core/filters/price.js#L24-L46

1 Like

Oh kk, tnx for clarification !
Cheers

1 Like