Skip to main content
Version: 2.2.0

Class: Namon

The types of name handled in this utility according the name standards.

Properties

index

readonly index: number


key

readonly key: string


all

readonly static all: Map<string, Namon>

All the predefined name types.


FIRST_NAME

readonly static FIRST_NAME: Namon


LAST_NAME

readonly static LAST_NAME: Namon


MIDDLE_NAME

readonly static MIDDLE_NAME: Namon


PREFIX

readonly static PREFIX: Namon


SUFFIX

readonly static SUFFIX: Namon


values

readonly static values: 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()

static cast(key): Namon

Makes a string key a namon type.

Parameters

key

string

Returns

Namon


has()

static has(key): boolean

Whether this string key is part of the predefined keys.

Parameters

key

string

Returns

boolean