Can someone explain why the includes function does not return true? The array of strings clearly has .. as does the search pattern. I checked the Mozilla JS docs and everything I am reading says it should return true as well.....Why is this returning false?
Just to rule out things Ive tested:
.. might actually be falsey. It is not. The string .. evaluates to true: console.log('..'?'its true':'its falsey') return its truelet dbname=null
let tablename="x..y"
console.log([dbname, tablename].includes(".."))