We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a6044 commit 6c3e7daCopy full SHA for 6c3e7da
exercises/21.3-Filter-list/test.js
@@ -26,7 +26,7 @@ test('The output in the console should match the one in the instructions!', func
26
27
//declare your function here
28
function _filterByName(theArray, theString){
29
- let filteredArray = theArray.filter(item => item.includes(theString))
+ let filteredArray = theArray.filter(item => item.toLowerCase().includes(theString.toLowerCase()))
30
return filteredArray
31
}
32
0 commit comments