title: How to store some data in array from another json data?
body: <p>I want to store only renewal dates from given array, is there any way  to store renewal dates in another array . I tried</p>
  <pre class="lang-js prettyprint-override"><code>    const rnDates = [res.result.renewals.renewal_date];
      this.setState({rn_dates:rnDates}).
  </code></pre>
  <p>But it shows undefined. If anyone knows how to store specific data from given object array</p>
  <pre><code>Object {
        &quot;renewals&quot;: Array [
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-24&quot;,
            &quot;contact&quot;: &quot;6458766452&quot;,
            &quot;created_at&quot;: &quot;2020-08-25 10:01:28&quot;,
            &quot;email&quot;: &quot;Hgg@gmail.com&quot;,
            &quot;id&quot;: &quot;46&quot;,
            &quot;name&quot;: &quot;Test4&quot;,
            &quot;renewal_date&quot;: &quot;2020-08-30&quot;,
            &quot;tenure&quot;: &quot;Virar&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-24&quot;,
            &quot;contact&quot;: &quot;6458796454&quot;,
            &quot;created_at&quot;: &quot;2020-08-24 17:15:21&quot;,
            &quot;email&quot;: &quot;R@gmail.com&quot;,
            &quot;id&quot;: &quot;45&quot;,
            &quot;name&quot;: &quot;Test2 &quot;,
            &quot;renewal_date&quot;: &quot;2020-08-30&quot;,
            &quot;tenure&quot;: &quot;Andheri&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-24&quot;,
            &quot;contact&quot;: &quot;6465789797&quot;,
            &quot;created_at&quot;: &quot;2020-08-24 17:14:21&quot;,
            &quot;email&quot;: &quot;Td@gmail.com&quot;,
            &quot;id&quot;: &quot;44&quot;,
            &quot;name&quot;: &quot;Test&quot;,
            &quot;renewal_date&quot;: &quot;2020-08-30&quot;,
            &quot;tenure&quot;: &quot;Dahisar&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-24&quot;,
            &quot;contact&quot;: &quot;6458879767&quot;,
            &quot;created_at&quot;: &quot;2020-08-24 14:39:27&quot;,
            &quot;email&quot;: &quot;Om@gmail.com&quot;,
            &quot;id&quot;: &quot;43&quot;,
            &quot;name&quot;: &quot;Omkar palace&quot;,
            &quot;renewal_date&quot;: &quot;2020-08-30&quot;,
            &quot;tenure&quot;: &quot;Borivali&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-24&quot;,
            &quot;contact&quot;: &quot;6458766497&quot;,
            &quot;created_at&quot;: &quot;2020-08-24 11:57:53&quot;,
            &quot;email&quot;: &quot;Mv@gmail.com&quot;,
            &quot;id&quot;: &quot;42&quot;,
            &quot;name&quot;: &quot;Mohak Vila&quot;,
            &quot;renewal_date&quot;: &quot;2020-08-28&quot;,
            &quot;tenure&quot;: &quot;Andheri&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
          Object {
            &quot;active_status&quot;: &quot;1&quot;,
            &quot;added_by&quot;: &quot;91&quot;,
            &quot;agreement_date&quot;: &quot;2020-08-23&quot;,
            &quot;contact&quot;: &quot;6458799464&quot;,
            &quot;created_at&quot;: &quot;2020-08-23 12:19:00&quot;,
            &quot;email&quot;: &quot;Di@gmail.com&quot;,
            &quot;id&quot;: &quot;41&quot;,
            &quot;name&quot;: &quot;Sai palace&quot;,
            &quot;renewal_date&quot;: &quot;2020-08-30&quot;,
            &quot;tenure&quot;: &quot;Dadar&quot;,
            &quot;under_user&quot;: &quot;91&quot;,
          },
        ],
      }
  </code></pre>