how do i check if the following value contains one of the strings in the array in javascript?

You can use the find method:

items.find((item) => this.mainItem.includes(item)) || ""

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top