Eliminating duplicate JavaScript objects: Three approaches | Hacker News Reader