Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
How do I know what ESx specification a feature belongs to?

I am reviewing an old codebase which was ES5 although I am cleaning it up so that the minimum supported version is ES2015. Having reviewed the libraries, there are many polyfills included from core-js which I need to detangle.

How do I find out what features belong to what specification so that I may know what polyfills are outside of my target specification?

For example, straight away there is one for Array.includes.

By referencing the MDN docs for Array.includes, I find a link to the specification however the specification seems to be a full ES2022 document and looking at the link, I am unsure at what point includes was added. In this case I know it is ES2015 however, looking at the significant list of polyfills, I will not know that for all entries that are being polyfilled.

How can I tell what's in ES2015 rather than what's in ES2016 and above?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There are a few ways:

  • The introduction to the editor's draft specification in recent versions has a few paragraphs describing what was added in what release. For example:

    ES2016 also included support for a new exponentiation operator and adds a new method to Array.prototype called includes.

    (not the best example because work on ES2016 mostly consisted of process and specification tooling improvements and big things that weren't going to be ready in time for the annual cut-off, so not that much was added to the language for standard library)
    and

    ECMAScript 2017 introduced Async Functions, Shared Memory, and Atomics along with smaller language and library enhancements, bug fixes, and editorial updates. Async functions improve the asynchronous programming experience by providing syntax for promise-returning functions. Shared Memory and Atomics introduce a new memory model that allows multi-agent programs to communicate using atomic operations that ensure a well-defined execution order even on parallel CPUs. It also included new static methods on Object: Object.values, Object.entries, and Object.getOwnPropertyDescriptors.

  • The finished proposals page tells you what version of the specification finished proposal was added to (or will be added to, in case of ones being added to the next spec snapshot). For example:

    Proposal Author Champion(s) TC39 meeting notes Expected Publication Year
    Array.prototype.includes Domenic Denicola Domenic Denicola
    Rick Waldron
    November 2015 2016
  • You can view the ES2015 specification here to know what's in it.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda