массив включает в или условия
if (['slug-title-one','slug-title-13'].some(slug => item.slug.includes(slug))) {
// checks for and displays if either
}
Dizzy Dotterel
if (['slug-title-one','slug-title-13'].some(slug => item.slug.includes(slug))) {
// checks for and displays if either
}