The fill() method of arrays and typed arrays sets all or some items of an array to a given a value.
fill()