I look for a solution to check if the value of the labelKey
property is to_be_rented
or to_be_put_on_sale
With a condition we can do it with :
if (this.project.currentProduct.productStatus.labelKey === ('to_be_rented' || 'to_be_put_on_sale')) {
}
But it does not work, and I also look for a more sophisticated alternative using Lodash or es2015 for example.
How can I do that?