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