Your message was truncated, but the method you are looking for is `unset`.

http://api.prototypejs.org/language/hash/prototype/unset/

Since the function is using `delete this._object[key]` nothing will occur if
you feed it a value that actually does not exist in the hash object.

Best,
Alex

On Thu, Apr 8, 2010 at 3:06 PM, chrysanthe m <[email protected]> wrote:

> Hello
> I am having a difficult time trying to enumerate a hash to determine if a
> give key is in the hash and if so delete it and its value.
> If I could approach it index it would be
> function remove(valueToTest, hashToBeTested){
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<prototype-scriptaculous%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to