[Greasemonkey] delete object attribute?

Jeremy Dunck jdunck at gmail.com
Sun Feb 5 17:08:59 EST 2006


On 2/5/06, Andre <gm at andrecgn.de> wrote:
> more a JS question than GM ... but ...
>
> I am using an object as an associative array:
>
>         var x = {};
>         x['foo'] = 'bar';


var x = {}
x['a'] = 1
uneval(x)
=> ({a:1})
delete x['a']
uneval(x)
=> ({})


More information about the Greasemonkey mailing list