mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 02:32:33 +00:00
parent
10ead07dd9
commit
4178e53db8
10
README.md
10
README.md
@ -53,6 +53,8 @@
|
|||||||
- [`toPrint()`](#toprint)
|
- [`toPrint()`](#toprint)
|
||||||
- [`equals(id)`](#equalsid)
|
- [`equals(id)`](#equalsid)
|
||||||
- [`isEqual(id)`](#isequalid)
|
- [`isEqual(id)`](#isequalid)
|
||||||
|
- [Others](#others)
|
||||||
|
- [`isPeerId(id)`](#ispeeridid)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
|
|
||||||
# Description
|
# 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
|
- `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
|
# License
|
||||||
|
|
||||||
MIT
|
MIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user