Is there a javascript equivalent to unpack sequences like in python?
a, b = (1, 2)
[a, b] = [1, 2]
Update:
Browser compatibility matrix: