libp2p / js-peer-id

peer-id implementation in JavaScript. Deprecated; use https://github.com/libp2p/js-libp2p-peer-id instead.
https://github.com/libp2p/js-libp2p-peer-id
MIT License
80 stars 44 forks source link

Rename `isEqual` to `equals` (and document) #94

Closed alanshaw closed 4 years ago

alanshaw commented 5 years ago

Just a suggestion but foo.equals(bar) is way more common and expected than foo.isEqual(bar).

Either way this existing function should be documented.