title: I want to delete objects that do not have a specific array
body: <pre><code>console.log(value)
  
  {
      List: [
          {
              id: 1
              title: 'hi',
              content: [
                  {
                      id: 1,
                      functionId: 11,
                  }
              ]
          }
          {
              id: 2,
              title: 'minsu',
              content: []
          }
      ]
  }
  </code></pre>
  <p>I want to delete the object if there is no content array.<br/></p>
  <p>I am creating a variable called control and outputting it using the map function inside.
  If the objects without content array have to be deleted by applying a filter condition, I don't know how to do it.</p>
  <pre><code>let control: any[any] = [
      value.map((value: any) =&gt; {
          return {
              id: value?.id,
              title: value?.title,
              content: value?.content[0].functionId
          }
      })
  ] 
  </code></pre>
  <p>But now, when I do console.log(control), an error occurs because the second object does not have content.</p>
  <p>I want to delete the second object without content and print it like this.</p>
  <pre><code>console.log(control) 
  [
      id: 1,
      title: 'hi',
      functionId: 11
  ]
  
  </code></pre>