title: Yup validation array items
body: <p>I have a text field area. Users can add extra fields. I can take all values from these fields and put them into a single array. But I don't want to send to backend empty string.  I am using YUP as a validation</p>
  <p>For instance;</p>
  <pre><code>Field 1 = &quot;hi&quot;
  Field 2 = &quot;how&quot;
  Field 3 = &quot;&quot;
  
  const myArray = [&quot;hi&quot;,&quot;how&quot;,&quot;&quot;]
  
  to be sent = [&quot;hi&quot;,&quot;how&quot;]
  </code></pre>
  <p>If I have only one item like</p>
  <pre><code>Field 1 = &quot;&quot;
  </code></pre>
  <p>I want to say = <code>&quot;this field can not be blank&quot;</code></p>
  <p>What I did</p>
  <pre><code> array()
          .compact(v =&gt; Boolean(v) !== true)
          .required(&quot;Can not be blank&quot;),
  </code></pre>