I am seeing an assignment like this:
const [a] = someArray
Which seems to assign first item from someArray
to a
constant. If so, it is the same as const a = someArray[0]
but in a new way.
Is it true? How is this assignment called so that I could find more information about it?