title: How to remove a property from an object?
body: <p>Currently an event is set on <code>checkboxes</code>, and <code>event.target</code> gives me the <code>status (checked = true/false)</code> of checkbox which is clicked.</p>
  
  <p>I am maintaining an object which keeps the track on all the selected checkboxes</p>
  
  <pre><code>var selectedMap  = {};
  
  if(event.target == true){
      var key = event.target.id;
      var val = event.target.name;
      selectedMap[key] = val;
  }
  </code></pre>
  
  <p>and I want to remove the element from the map which is unselected</p>
  
  <pre><code>else if(event.target == false){
    selectedMap.remove(event.target.id);
  }
  </code></pre>
  
  <p>when I run this it gives me error in <code>Firebug</code> : <code>selectedMap.remove is not a function</code></p>
  
  <p>So my question is <strong><em>How can I remove the element when the checkbox is unselected ?</em></strong></p>