Creates an array of given length and fills it with value.
A value stored in an array.
The length of the array.
Optional
A value or a value provider callback.
An array.
// Create a array of 3 element refsconst refs = useFunction(arrayOf, 3, createRef<Element>); Copy
// Create a array of 3 element refsconst refs = useFunction(arrayOf, 3, createRef<Element>);
Creates an array of given length and fills it with value.