UNPKG

@formatjs/intl-enumerator

Version:
11 lines (10 loc) 298 B
import { shouldPolyfill } from './should-polyfill'; import { supportedValuesOf } from './src'; if (shouldPolyfill()) { Object.defineProperty(Intl, 'supportedValuesOf', { value: supportedValuesOf, enumerable: true, writable: false, configurable: false, }); }