title: Node Js: Validate empty array using class validator
body: <p>How to check whether the array is empty or not using class-validator.<br />
  Given below is my structure. I want to check if <strong>cartId</strong> is empty or not.</p>
  <pre><code>{
     &quot;cartId&quot;: []
  }
  </code></pre>