Answers for "fill array with values javascript"

7

fill array with values javascript

let filledArray = new Array(10).fill({'hello':'goodbye'});
Posted by: Guest on February-18-2020
5

array fill

new Array(5).fill('element')
// ["element", "element", "element", "element", "element"]
Posted by: Guest on October-31-2020

Code answers related to "fill array with values javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language