Creates a new array with the given length and fills the array with the given value.

This function is valid in v2.13.0 to v2.24.2. This function has been downloaded 42 times.


{number} length
Integer that represents the length of the array (minimum of 0).
{Function|*=} opt_filler Optional, Default:undefined
Either a filler value or if this is a function and opt_callFiller is true-ish then this function will be called with the index to be filled and the return value will be used as the value added at that index.
{boolean=} opt_callFiller Optional, Default:false
If specified as true-ish and opt_filler is a function then opt_filler will be called as a function to generate the values at for each item in the new array.


A new array of the specified length with the specified value used for each item.