1 2 3 4 5 6 7 |
'use strict'; const a = [1, 2, 3]; const [b, ...c] = a; console.log(a, b, c); |
1 |
[ 1, 2, 3 ] 1 [ 2, 3 ] |
1 2 3 4 5 6 7 |
'use strict'; const a = [1, 2, 3]; const [b, ...c] = a; console.log(a, b, c); |
1 |
[ 1, 2, 3 ] 1 [ 2, 3 ] |