title: How to check empty array between array of objects and another array of objects in javascript
body: <p>I have got a permission array of objects and groupKey.  I want to filter between permission and groupKey. if array of permission array of objects (property is empty array [] ) , then groupkey(Articles,Journals) will be removed.   For example, Here is articles and Journals is empty array[] . </p>
  
  <pre><code>let permission = [{
              Book: [{
                  label: "Can View",
                  value: "can_view"
              } ]
          },
         {
              Test: [{
                  label: "Can View",
                  value: "can_view"
              } ]
          }, , {
              Articles: []
          } ,{
              Journals: []
          } 
      ]
  
  const groupKey = [    
   {label: "Book", value: "Book"},
   {label: "Test", value: "test"},
   {label: "Articles", value: "Articlefull"},
   {label: "Journals", value: "Journal"},
  ]
  </code></pre>
  
  <p>My accepted Output would be </p>
  
  <pre><code> let groupKey = [    
       {label: "Book", value: "Book"},
       {label: "Test", value: "test"},
      ]
  </code></pre>
  
  <p>I am using filter method , but I did not get find the solution. </p>