mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
4 lines
136 B
JavaScript
4 lines
136 B
JavaScript
const [first, , third = "t", ...others] = [1, 2, undefined, 4, 5]
|
|
let x = 1, y = 2
|
|
;[x, y] = [y, x]
|
|
return [first, third, others, x, y]
|