API Docs for: 0.0.57
Show:

Enum Class

Constructor

Enum

(
  • key
  • value
)

Defined in lib\misc\enum.js:91

Parameters:

  • key String

    The Enum key.

  • value Number

    The Enum value.

Item Index

Methods

get

(
  • key
)
EnumItem

Returns the appropriate EnumItem.

Parameters:

  • key EnumItem | | String | | Number

    The object to get with.

Returns:

EnumItem:

The get result.

has

(
  • value
)
Boolean

Defined in lib\misc\enum.js:35

Checks if the flagged EnumItem has the passing object.

Parameters:

  • value EnumItem | | String | | Number

    The object to check with.

Returns:

Boolean:

The check result.

is

(
  • item
)
Boolean

Defined in lib\misc\enum.js:19

Checks if the EnumItem is the same as the passing object.

Parameters:

  • item EnumItem | | String | | Number

    The object to check with.

Returns:

Boolean:

The check result.

toJSON

() String

Defined in lib\misc\enum.js:61

Returns JSON object representation of this EnumItem.

Returns:

String:

JSON object representation of this EnumItem.

toString

() String

Defined in lib\misc\enum.js:51

Returns String representation of this EnumItem.

Returns:

String:

String representation of this EnumItem.

valueOf

() String

Defined in lib\misc\enum.js:71

Returns the value to compare with.

Returns:

String:

The value to compare with.