mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-19 15:41:36 +03:00
7 lines
180 B
Plaintext
7 lines
180 B
Plaintext
// A spread operator `...` copies the elements of one array into another
|
|
function main(a: [u8; 3]) {
|
|
let b = [1u8, 1u8];
|
|
let c = [1u8, ...b];
|
|
|
|
console.assert(a == c);
|
|
} |