Dictionary : Dictionary « MS JScript « JavaScript Tutorial






The Dictionary object is an associative array of items that can be of any type.

Each item is associated with a unique key that provides access to each item in the array.

The key is usually an integer or a string, but can be anything except an array.

Properties/MethodsDescription
CountReturns the number of items in a collection or dictionary
ItemSets or returns an item for a specified key
KeySets a key in a dictionary
Add()Adds a key and item pair to dictionary
Exists()Determines if specified key exists in dictionary
Items()Returns array of all items in dictionary
Keys()Returns array of all existing keys in dictionary
Remove()Removes a key, item pair from dictionary
RemoveAll()Removes all key, item pairs from a dictionary










32.4.Dictionary
32.4.1.Dictionary
32.4.2.Dictionary.Add()
32.4.3.Dictionary.Count
32.4.4.Dictionary.Exists()
32.4.5.Dictionary.Item()
32.4.6.Dictionary.Items()
32.4.7.Dictionary.Key()
32.4.8.Dictionary.Keys()
32.4.9.Dictionary.Remove()
32.4.10.Dictionary.RemoveAll()