Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 437 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 437 Bytes

jsdictionary

Javascript dictionary data structure

Initiation:

var mydictionary = new jsdictionary();

Add item:

mydictionary.add("color", "Blue");

Access the item:

var color = mydictionary["color"];

Methods:

mydictionary.containsKey("color");

mydictionary.containsValue("Red");

mydictionary.count();

mydictionary.remove("color");

mydictionary.clear();