title: How to splice an empty property of an object that's into an array?
body: <p>So I have an array of objects and I would like to slice the property of an object when it's empty.</p>
  
  <p>For example:</p>
  
  <pre><code>var quotes = [
  {
      quote: "Bolshevism is not a policy; it is a disease. It is not a creed; it is a pestilence.",
      source: "Winston Churchill",
      citation: "",
      year: "29 May 1919",
      place: ""
  },
  {
      quote: "Learn while you live",
      source: "",
      citation: "X",
      year: "1950",
      place: ""
  }];
  </code></pre>
  
  <p>I have a list of objects like that with object names randomly empty. </p>
  
  <p>I would like to print to the page only the properties that are not empty.</p>
  
  <p>So I'm trying to loop through the object to find the indexOf() the empty property and splice it:</p>
  
  <pre><code>function findEmptyProp(quotes) {
     for (prop in quotes) {
       if(quotes[i].children === '') {
          return indexOf(quotes[i]);
          quotes.splice(i, 1);
  }}}
  </code></pre>
  
  <p>Thanks for your help</p>