fill
bitcoinjs-lib / fill
Function: fill()
fill\<
E
,N
>(value
,length
):FixedArray
\<E
,N
>
Defined in: packages/scrypt-ts-btc/src/smart-contract/fns/fill.ts:12
Returns an FixedArray
with all size
elements set to value
, where value
can be any type.
Note that length
must be a numeric literal or a compiled-time constant
Type Parameters
• E
• N extends number
Parameters
value
E
the value of each element to set
length
N
the length of FixedArray
Returns
FixedArray
\<E
, N
>