mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 10:01:40 +03:00
8 lines
213 B
Plaintext
8 lines
213 B
Plaintext
function main() {
|
|
const arr: [u32; 9] = [0, 1, 2, 3, 4, 5, 6, 7, 8];
|
|
const expected: [u32; 2] = [0, 1];
|
|
|
|
const actual = arr[..2]; // Should produce [0, 1]
|
|
|
|
console.assert(expected == actual);
|
|
} |