Preparing search index...
The search index is not available
@libp2p/pubsub - v7.0.3
@libp2p/pubsub - v7.0.3
utils
ensureArray
Function ensureArray
ensure
Array
<
T
>
(
maybeArray
:
T
|
T
[]
)
:
T
[]
Make everything an array
Type Parameters
T
Parameters
maybeArray:
T
|
T
[]
Returns
T
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@libp2p/pubsub -
v7.0.3
errors
index
peer-
streams
utils
any
Match
big
Int
From
Bytes
big
Int
To
Bytes
ensure
Array
msg
Id
no
Sign
Msg
Id
random
Seqno
to
Message
to
Rpc
Message
Make everything an array