I have an array containing file paths as strings. I need to search through this array & make a new array including only those which contain a certain word. How would I create an if statement that includes the 'includes' method?
Here's my code so far:
var imagePaths = [...]
if(imagePaths.includes('index') === 'true'){
???
}
Thank you in advance