5 ms·
Would have also been nice to have an actual javascript repl. Chrome has it built in and Firefox has Firebug. Was a bit shaky on tree traversal, but I think th
by orangecat 16y ago
Would have also been nice to have an actual javascript repl.
Chrome has it built in and Firefox has Firebug.
Was a bit shaky on tree traversal, but I think that's correct.
It's much simpler with recursion. Your contains method is "correct" but doesn't work in this case because objects with the same keys and values still aren't necessarily equal.
- ydant 16y agoRecursion is also what the "exam" asked for, so I imagine you'd be dinged a bit for not using it.