We minify our code with uglify-js and I have spotted a strange format which is used when compiling the following javascript:
console.debug(`[NotificationOpenedHandler] Received additionalData:`, data);
if(data.type && data.id) {
// more code...
This will be turned into the following:
if (console.debug(`[NotificationOpenedHandler] Received additionalData:`, e), e.type && e.id) {
First I thought its some compiler error, likely generated by uglify-js when trying to minimize the code but after testing it seems (true, true & false)
it's a valid expression (No syntax error).
The value of the first expression doesn't matter so
(true, true & false) // -> false
(true, true & true) // -> true
(false, true & false) // -> false
(false, true & true) // -> true
My question, what does this expression mean?