I'm trying to compare two strings, while on one of them I'm doing some bidi manipulation:
const a = "\u202B" + "hi" + "\u202C"
console.log(a === 'hi') // false
console.log(a == 'hi') // false
The output on the screen will look the same while it's actually not. Is there a way to check for equality while not taking bidi into account (so the result of the equality check above will return true)?