WeakMap uniq

[http://wiki.ecmascript.org/doku.php?id=harmony:weak_maps:title=WeakMap]uniq を書いて [https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf:title=indexOf] 版と比較してみた。
Primitive を受け付けない*1ので Object.create(null) と併用する。
https://gist.github.com/1005856

ちゃんと速いようで安心。

*1:WeakMap().set(1) //=> Error: value is not a non-null object