Encountering a sonar error:
The return value of "filter" should be utilized
Despite using the filter, the error persists. What might be the issue here?
array.filter(item => {
item.value.split(' ').forEach( i => {
if ( doSomething(i).toLowerCase().indexOf(doSomething(term).toLowerCase()) === 0 ) {
arrayResult.push(item);
}
});