#
fill
Function • Sets each element of an array to a specified value and returns the mutated array.
fill value, array → array
Arguments
| name | type | description |
|---|---|---|
| value | Any | The value with which to fill the array. |
| array | Array |
The array to fill. |
Returns
| name | type | description |
|---|---|---|
| array | Array |
The resulting filled array. |