Skip to content

Commit 6c3e7da

Browse files
Issue #201 fixed
1 parent e5a6044 commit 6c3e7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/21.3-Filter-list/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test('The output in the console should match the one in the instructions!', func
2626

2727
//declare your function here
2828
function _filterByName(theArray, theString){
29-
let filteredArray = theArray.filter(item => item.includes(theString))
29+
let filteredArray = theArray.filter(item => item.toLowerCase().includes(theString.toLowerCase()))
3030
return filteredArray
3131
}
3232

0 commit comments

Comments
 (0)