Why does startsWith method return true when the searchString is empty. I think same in other string methods like includes, endsWith. What can I do if I want to avoid it i.e. it should return false in case of empty searchString.
var haystack = 'Hello World!', needle ='';
console.log( haystack.startsWith( needle ) );