systemed/iD — pull request #5 by tmcw (2012-10-16 18:33:49+00:00)
Title: Use Object.keys for counting keys.

There's not a huge speed difference between the two - Gecko is faster with
for-in and Webkit is faster with Object.keys. But I think this is a clearer
pattern for counting keys.