careful! .size isn't a native JS array method.
.size
Some of my favourites are Array(n) and Array.fill, they're pretty niche, I don't think I have used them outside of unit testing..!
Array(n)
Array.fill
Thanks Jen!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
careful!
.size
isn't a native JS array method.Some of my favourites are
Array(n)
andArray.fill
, they're pretty niche, I don't think I have used them outside of unit testing..!Thanks Jen!