Home Syntax - what does square brackets around a variable declaration mean
 This question already has an answer here: Multiple assignment in javascript? What does [a,b,c] = [1, 2, 3]; mean? 4 answers Take the following line of code const [component] = router.getMatchedComponents({ ...to })  Could anyone advise what the square brackets around component means here? I have tried to google this but struggling to find an answer