I'm having trouble showing the length of items in my array that exceed 100 by using a function call. I keep encountering this error message "ERROR TypeError: Cannot read property 'filter' of undefined". Can someone please assist me?
html
<div><p> {{getIssuesCount()}} </p></div>
ts
getIssuesCount() {
const issuesCount = this.wells.filter(wells => wells.totalCost > 100)
return issuesCount.length
}