Compare se as strings são iguais JavaScript
new String("a").valueOf() == new String("a").valueOf()
Fierce Falcon
new String("a").valueOf() == new String("a").valueOf()
new String("a") == new String("a")