How can I remove some texts from a string which is inside of an object and object is in the array?

How can I remove description:("Auto-generated by YouTube.") from title?

[
  {
    title: 'DÁKITI description:("Auto-generated by YouTube.")',
    author: 'Bad Bunny',
    duration: 205090
  }
]

Thanks in advance!

7 thoughts on “How can I remove some texts from a string which is inside of an object and object is in the array?”

Leave a Comment