mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-29 05:02:52 +03:00
7 lines
184 B
Plaintext
7 lines
184 B
Plaintext
// A spread operator `...` copies the elements of one array into another
|
|
function main(a: [u8; 3]) {
|
|
const b = [1u8, 1u8];
|
|
const c = [1u8, ...b];
|
|
|
|
console.assert(a == c);
|
|
} |