title: Check if nested arrays in object contains empty values
body: <p>Consider the following object:</p>
  
  <pre><code>{
    "params": {
      "time_to_diagnosis": [
        {
          "field": "date_of_diagnosis",
          "value": ""
        },
        {
          "field": "date_of_symptom_onset",
          "value": "2019-09-01"
        }
      ],
      "time_since_onset": [
        {
          "field": "date_of_symptom_onset",
          "value": "2019-09-01"
        }
      ]
    }
  }
  </code></pre>
  
  <p>As you can tell this is a object , of objects with arrays that them selves contains objects.</p>
  
  <p>As you can see some keys are empty.</p>
  
  <p>The idea is that if there are no empty keys in the arrays containing objects, then return true, else return false.</p>
  
  <p>Heres what I wrote:</p>
  
  <pre><code>const isParamsInAjaxParamsEmpty = (paramsForAjaxCall) =&gt; {
    for (const key in paramsForAjaxCall) {
      for (const nestedKey in paramsForAjaxCall[key]) {
        const params = paramsForAjaxCall[key];
  
        if (params[nestedKey] === "") {
          return true;
        }
      }
    }
  
    return false;
  }
  </code></pre>
  
  <p>I Know I can do an <code>Array.isArray</code> on the nestedKey part, but Im not sure how to make this recursive, as there could be one or more arrays.</p>
  
  <p><code>paramsForAjaxCall</code> is the object above.</p>
  
  <p><strong>Thoughts?</strong></p>