of

fun of(code: String): String?(source)

Receives a code and returns a string based on the locale and options provided when instantiating Intl.DisplayNames()

Parameters

code

The code to provide depends on the type passed to display name during creation:

MDN.