Looking for guidance on how to filter out file paths in an array that contain a specific word. How can I use the 'includes' method within an if statement?
Current code snippet:
var imagePaths = [...]
if(imagePaths.includes('index') === 'true'){
???
}
Appreciate any help!