r3 - 23 Jun 2006 - 11:10:47 - MatthewEernisseYou are here: OSAF >  Documentation Web  >  ScoobyJavaScriptLibraries > JavaScriptHash > JavaScriptHashMethodRemoveItem

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
GlossaryForm
DisplayName Change Me!
GlossaryTermCategories

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.