TypeScriptArrayfill

Changes all elements in an array to a static value, from a start index to an end index.

Syntax

array.fill(value, start?, end?): T[]