removeItem
Class
Method of Hash
Library
hash.js
Syntax
exampleHash.removeItem(key);
Parameters
key A string indicating the key for the item to remove from the Hash.
Description
Removes an item in the Hash for a specific key.
Examples
var badSciFi = new Hash();
movieCount = 0;
badSciFi.setItem("Connery", "Zardoz");
badSciFi.setItem("York", "Logan's Run");
badSciFi.setItem("Douglas", "Saturn 3");
movieCount = badSciFi.length; // movieCount is 3
badSciFi.removeItem('York');
movieCount = badSciFi.length; // movieCount is 2