Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

ECMAScript 6 support in Mozilla

Questa traduzione è incompleta. Collabora alla traduzione di questo articolo dall’originale in lingua inglese.

ECMAScript 6 è la prossima versione standard, nome in codice "Harmony" o "ES.next". Specification drafts possono essere trovate sulla wiki ufficiale. Se si volesse lasciare un feedback sullo standard, si prega di farlo su es-discuss.

Caratteristiche attualmente supportate in  Firefox

Sintassi

Caratteristica Versione Commenti
const ? not compliant with the current specification: const bindings behave like var instead of let
let ? not compliant with the current specification
Destructuring assignment JS 1.7 not compliant with the current specification
for...of statement  
Iterators e generatori ? not compliant with the current specification)
Rest parameters  
Parametri predefiniti  
Spread operator of Array  

Libreria Standard

Caratteristica Versione Commenti
Map
Iterable since
A new type of collections
Set
Iterable since
A new type of collections
WeakMap
clear() in
A new type of collections
Proxy  
RegExp sticky (y) flag ?  
Number.isNaN()  
Number.isFinite()  
Number.toInteger()  
Number.isInteger()  
String.startsWith()  
String.endsWith()  
String.contains()  

Caratteristiche non ancora supportate

  • Operatore is e isnt
  • Nuove funzioni Math  (log10, log2, log1p, expm1, cosh, sinh, tanh, acosh, asinh, atanh, hypot, trunc, sign)
  • Moduli

Guarda anche

Tag del documento e collaboratori

 Hanno collaborato alla realizzazione di questa pagina: teoli, khela
 Ultima modifica di: teoli,