array includes with or condition

Solutions on MaxInterview for array includes with or condition by the best coders in the world

showing results for - "array includes with or condition"
Jessica
06 Jun 2017
1if (['slug-title-one','slug-title-13'].some(slug => item.slug.includes(slug))) {
2     // checks for and displays if either
3
4}
5