title: filter array into different array on the basis of fields
body: <p>I have a array as follows:</p>
  <pre><code>[
    {
              &quot;values&quot;: [
                {
                  &quot;title&quot;: &quot;Status&quot;,
                  &quot;text&quot;: &quot;closed&quot;
                },
                {
                  &quot;title&quot;: &quot;Timeline&quot;,
                  &quot;text&quot;: &quot;2021-12-06 - 2021-12-24&quot;
                }
              ]
      },
        {
              &quot;values&quot;: [
                {
                  &quot;title&quot;: &quot;Status&quot;,
                  &quot;text&quot;: &quot;overdue&quot;
                },
                {
                  &quot;title&quot;: &quot;Timeline&quot;,
                  &quot;text&quot;: &quot;2021-12-06 - 2021-12-24&quot;
                }
              ]
      },
        {
              &quot;values&quot;: [
                {
                  &quot;title&quot;: &quot;Status&quot;,
                  &quot;text&quot;: &quot;open&quot;
                },
                {
                  &quot;title&quot;: &quot;Timeline&quot;,
                  &quot;text&quot;: &quot;2021-12-06 - 2021-12-24&quot;
                }
              ]
      },
        {
              &quot;values&quot;: [
                {
                  &quot;title&quot;: &quot;Status&quot;,
                  &quot;text&quot;: &quot;open&quot;
                },
                {
                  &quot;title&quot;: &quot;Timeline&quot;,
                  &quot;text&quot;: &quot;2021-12-06 - 2021-12-24&quot;
                }
              ]
      },
        {
              &quot;values&quot;: [
                {
                  &quot;title&quot;: &quot;Status&quot;,
                  &quot;text&quot;: &quot;closed&quot;
                },
                {
                  &quot;title&quot;: &quot;Timeline&quot;,
                  &quot;text&quot;: &quot;2021-12-06 - 2022-01-29&quot;
                }
              ]
      }
  ]
  </code></pre>
  <p>I want my final output in three arrays closedArray,openArray,dueArray.
  I want to traverse this array, go to status field, check status. if status is closed, then put element in closedArray, if overdue then put element in due array, if open put element in open array. If date in Timeline field passed the current date, then need to put that element in openArray. How can I do this?</p>