2020-03-03 20:37:08 +08:00

4 lines
74 B
JavaScript

var o = [1, 2, 3]
var a, b, c, p
p = {a, b, c} = o
console.log(a, b, c, p)