✅ – Liil' Boo – 09-03 Jul 30

Hello, Context & Tech : Javascript, Arrays & destructuring I've encountered a piece of code that I do not understand , what exactly is being destructured here
Array.from({length: 5})
Array.from({length: 5})
Thanks in advance
LB
Liil' Boo628d ago
@ping me if answer, thank you 🙏
N
Nesho628d ago
@Liil' Boo It’s just creating an array of length 5. Nothing is being destrucured, it’s passing an options object in.
LB
Liil' Boo628d ago
Oh, So, it's a property assignment* ? I coincidentally also got an answer in the channel : help-react (Not a cross-posting, someone happened to post a similar code snippet)
N
Nesho628d ago
Yep
LB
Liil' Boo628d ago
@Nesho thanks ✅
UU
Unknown User628d ago