R
Reactiflux

✅ – Liil' Boo – 09-03 Jul 30

✅ – Liil' Boo – 09-03 Jul 30

LBLiil' Boo7/30/2022
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 @ping me if answer, thank you 🙏
NNesho7/30/2022
@Liil' Boo It’s just creating an array of length 5. Nothing is being destrucured, it’s passing an options object in.
LBLiil' Boo7/30/2022
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)
NNesho7/30/2022
Yep
LBLiil' Boo7/30/2022
@Nesho thanks ✅
UUUnknown User7/30/2022
2 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

✅ – Liil' Boo – 09-03 Jul 30

Join Server