Answers for "javascript repeat element in array"

5

javascript repeat element in array

Array(5).fill(2)
//=> [2, 2, 2, 2, 2]
Posted by: Guest on May-04-2020
0

repeat an element in array in js

Array(5).fill(2)
//=> [2, 2, 2, 2, 2]
Posted by: Guest on February-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language