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