Firefox 79 Released, Enables Javascript Logical Assignment Operators

Browser News

Firefox 79 was released on 28th July, 2020. Major web platform updates in this version include :

  • Javascript logical assignment operators are enabled. These include logical OR assignment operator, logical AND assignment operator and logical nullish assignment operator.

    These operators can be used to perform assignment based on criteria, basesd on whether the left hand side is a falsy, truthy, or nullish value.

    // set x to y when x is falsy
    x ||= y;
    
    // set x to y when x is not falsy
    x &&= y;
    
    // set x to y when x is nullish
    x ??= y;
    
  • Javascript Promise.any() has been enabled. This can be used to find whether at least single Promise was fulfilled out a given list of Promises.

  • Setting target="_blank" on <a> and <area> tags implicitly defaults to setting rel="noopener". This is better for performance and security.
  • And more

Read the full Mozilla blog post.

August 1, 2020

Comments

Loading Comments