Could anyone tell me how it prints "got" when the string does not contain empty string at all?
const sentence = "Depreciation";
if(sentence.includes("")){
console.log("got");
}
else{
console.log("none");
}

I was doing a project where I was supposed to filter a loaded with data array variable content based on the user's input in the search box. Surprisingly, when the user does not input anything (empty string), it returns the original(full) content of the array instead of an empty array. I was using array.filter() and string.includes().
I understood array.filter as it will return a new array which fulfills the condition written inside the filter function, which is the string.includes(). That said, I thought it is supposed to return empty array since the array content itself does not has any element contains empty string.
That leads me to the question asked, any of your help will be greatly appreciated!