1
votes

for some reason this code returns false

const label = "airplane";

console.log(label === "airplane");

I have already tried casting the label to string, using toLowerCase and other things, but it just doesn't work.

No, this works just fine. We'll need your actual code.deceze