SyntaxFix
Write A Post
Hire A Developer
Questions
Used to write it all manually before knowing this one ???
Array(length).fill(value) Array(5).fill('') => ['','','','',''] Array(3).fill({ value: 2 }) => [{ value: 2 },{ value: 2 },{ value: 2 }]