We're a place where coders share, stay up-to-date and grow their careers.
What about this?
const array = Array.from({ length: arraysize }, () => ({ hello: 'goodbye' }))
And if rename arraysize to length then
arraysize
length
const array = Array.from({ length }, () => ({ hello: 'goodbye' }))
What about this?
And if rename
arraysize
tolength
then