Show:

Dictionary maps keys to values. A Dictionary cannot contain duplicate keys; each key can map to at most on value.

Methods

add

(
  • key
  • value
)

Add a Key Value pair.

Parameters:

contains

(
  • obj
)
Bool

Check whether array contains the object

Parameters:

Returns:

Bool:

bool true|false True if array contains the object else false

exists

(
  • key
)
Boolean

Check whether key exists or not.

Parameters:

Returns:

Boolean:

true/false; TRUE: If key exists, FALSE: If key does not exists.

get

(
  • key
)
Object

Get value based on Key.

Parameters:

Returns:

Object:

Value

remove

(
  • obj
)

Remove the object from array

Parameters:

remove

(
  • key
)

Remove value based on key.

Parameters:

toArray

() Array

Get All Key and Values

Returns:

Array:

Key and Values.