Can't find the problem, but it keeps showing this error!! same happens when using other methods like includes.
let notes = [{},{
title: 'My next trip',
body: 'I would like to go to Spain'
},{
title: 'Habits to work on',
body: 'Exercise. Eating a bit better'
},{
title: 'Office modification',
body: 'Get a new seat'
}]
let filteredNotes = notes.filter( function (note, index) {
let findFileredTitle = note.title.toLowerCase().includes('ne')
let findFileredBody = note.body.toLowerCase().includes('ne')
return findFileredTitle || findFileredBody
})
console.log(filteredNotes)