MCPcopy Index your code
hub / github.com/formatjs/formatjs / script

Method script

packages/intl-locale/index.ts:657–660  ·  view source on GitHub ↗

* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script

()

Source from the content-addressed store, hash-verified

655 * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script
656 */
657 public get script(): string | undefined {
658 const locale = getInternalSlots(this).locale
659 return parseUnicodeLanguageId(locale).script
660 }
661 /**
662 * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
663 */

Callers

nothing calls this directly

Calls 2

parseUnicodeLanguageIdFunction · 0.90
getInternalSlotsFunction · 0.70

Tested by

no test coverage detected