Saltar al contenido principal

Intl.supportedValuesOf

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Un polyfill/ponyfill compatible con la especificación para Intl.supportedValuesOf.

npm Version size

Instalación

npm i @formatjs/intl-enumerator

Requisitos

Uso

Sencillo

import '@formatjs/intl-enumerator/polyfill'

Importación dinámica + detección de capacidades

import {shouldPolyfill} from '@formatjs/intl-enumerator/should-polyfill'
async function polyfill() {
// This platform already supports Intl.supportedValuesOf
if (shouldPolyfill()) {
await import('@formatjs/intl-enumerator/polyfill')
}
// Alternatively, force the polyfill regardless of support
await import('@formatjs/intl-enumerator/polyfill-force')
}

Pruebas

Esta biblioteca cumple con el estándar test262.