I'm on VSCode with ESLint installed and I tried to type that expression to get a "true" or "false" output
const result = goodGuys.includes(guy) ?
but it didn't worked and with a quick fix (from ESLint that I don't understand, so here I am lol) of removing the "?" and adding two exclamation marks at the beginning, it work just well.
const result = !!goodGuys.includes(guy);
Can someone explain this to me please? Thx