Skip to content

Commit 9cae2bd

Browse files
committed
Revert "fix: avoid constructor.name pattern"
This reverts commit e386738.
1 parent e386738 commit 9cae2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ Multiaddr.protocols = protocols
415415
*/
416416
Multiaddr.isMultiaddr = function isMultiaddr (addr) {
417417
if (addr.constructor && addr.constructor.name) {
418-
return (addr instanceof Multiaddr)
418+
return addr.constructor.name === 'Multiaddr'
419419
}
420420

421421
return Boolean(

0 commit comments

Comments
 (0)