Array.fill

Run Settings
LanguageTypeScript
Language Version
Run Command
const a = Array(7) // [ <7 empty items> ] console.log(a) const b = Array(7).fill(null) // error TS2550: Property 'fill' does not exist on type 'any[]'. console.log(b)
Editor Settings
Theme
Key bindings
Full width
Lines