Good point, my brain was stuck in ruby land. Looks like Javascript has no concept of "object id" but it does support comparisons. Might just have to use an array and scan over it repeatedly...