Class: Namon
The types of name handled in this utility according the name standards.
Properties
index
readonlyindex:number
key
readonlykey:string
all
readonlystaticall:Map<string,Namon>
All the predefined name types.
FIRST_NAME
readonlystaticFIRST_NAME:Namon
LAST_NAME
readonlystaticLAST_NAME:Namon
MIDDLE_NAME
readonlystaticMIDDLE_NAME:Namon
PREFIX
readonlystaticPREFIX:Namon
SUFFIX
readonlystaticSUFFIX:Namon
values
readonlystaticvalues:Namon[]
The list of supported name types.
Methods
equal()
equal(
other):boolean
Whether this and the other value are equal.
Parameters
other
unknown
Returns
boolean
toString()
toString():
string
String representation of this object.
Returns
string
cast()
staticcast(key):Namon
Makes a string key a namon type.
Parameters
key
string
Returns
Namon
has()
statichas(key):boolean
Whether this string key is part of the predefined keys.
Parameters
key
string
Returns
boolean