diff --git a/README.md b/README.md index 388907b..df06b43 100644 --- a/README.md +++ b/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