JavaScript doesn’t have dictionaries, it has objects. Aside from that, strings (which is really what you are talking about) are always case-sensitive .
Read moreWhat is filter () in JavaScript?
The filter() method creates a new array filled with elements that pass a test provided by a function . The filter() method does not execute the function for empty elements. The filter() method does not change the original array.
Read more