Remove object attribute

Remove object attribute

Hi guys/girls,

I have an object created by:

var obj = {};
obj. item1 = {};
obj. item2 = {};
obj. item3 = {};
obj. item4 = {};

I am wanting to remove one of the attributes. So I call $(obj).removeAttr('item1')
This empties the attribute but the attribute still exists.
Any pointers would be great!

Here's the print out from chrome's js console

obj
Object
  1. item1Object
  2. item2Object
  3. item3Object
  4. item4Object
  5. __proto__Object

$(obj).removeAttr('item1')
[
Object
  1. item1""
  2. item2Object
  3. item3Object
  4. item4Object
  5. __proto__Object

]