1. intl-fallback-symbol
ECMA-402 Intl spec's internal `FallbackSymbol`
intl-fallback-symbol
Package: intl-fallback-symbol
Created by: ljharb
Last modified: Mon, 25 Apr 2022 18:37:20 GMT
Version: 1.0.0
License: MIT
Downloads: 7,610
Repository: https://github.com/ljharb/intl-fallback-symbol

Install

npm install intl-fallback-symbol
yarn add intl-fallback-symbol

intl-fallback-symbol Version Badge

github actions
coverage
dependency status
dev dependency status
License
Downloads

npm badge

ECMA-402 Intl spec's internal FallbackSymbol.

This Symbol is well-known - shared across realms.

It is present in the following engines with the description "IntlLegacyConstructedSymbol" (spec):

  • node >= 16
  • Chrome >= 91
  • Safari >= 14.1
  • Firefox >= 54

It is present in the following engines with the description "IntlFallback": (The ES2017 Intl spec did not specify a description)

  • node >=8 <16
  • Chrome 57 - 90

When it is present, the package will export it; when not, it will export undefined.

Example

 var IntlFallbackSymbol = require('intl-fallback-symbol');

var assert = require('assert');

assert(typeof IntlFallbackSymbol === 'symbol');

Tests

Simply clone the repo, npm install, and run npm test

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code