mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-24 18:52:34 +00:00
parent
10ead07dd9
commit
4178e53db8
10
README.md
10
README.md
@ -53,6 +53,8 @@
|
||||
- [`toPrint()`](#toprint)
|
||||
- [`equals(id)`](#equalsid)
|
||||
- [`isEqual(id)`](#isequalid)
|
||||
- [Others](#others)
|
||||
- [`isPeerId(id)`](#ispeeridid)
|
||||
- [License](#license)
|
||||
|
||||
# Description
|
||||
@ -285,6 +287,14 @@ Returns `true` if the given PeerId is equal to the current instance.
|
||||
|
||||
- `id` can be a PeerId or a Buffer containing the id
|
||||
|
||||
## Others
|
||||
|
||||
### `isPeerId(id)`
|
||||
|
||||
Returns `true` if the given id is an instance of PeerId
|
||||
|
||||
- `id` should be an instance of PeerId
|
||||
|
||||
# License
|
||||
|
||||
MIT
|
||||
|
Loading…
x
Reference in New Issue
Block a user