_mercury – 22-39 Jul 27

how to create an array in js with same value 100 times ?
E
Eva629d ago
Array.from({ length: 100 }, () => value); The function also gives you item (undefined) and index if you want to generate some array basing off indices
M
_mercury629d ago
great thanx
UU
Unknown User629d ago