title: Javascript -filtering object
body: <p>
  I am trying to do something in pure JS.  I have an Object like so</p>
  
  <pre><code>var data = {
      "Something": true,
      "Something else": false,
      "Blah": false,
      "a fish ISA": true
  };
  </code></pre>
  
  <p>What I want to do is filter anything which has true to its own Object.  At the moment I am trying</p>
  
  <pre><code>var thingFunctions = Object.keys(data).filter(function(e) {
      return typeof data[e] == 'function'
  });
  </code></pre>
  
  <p>But I think this is incorrect.  How can I get the data with a value of true to its own Object?</p>
  
  <p>Thanks</p>