1 element array
2 tag _
3 ast
4 category arrays
5 item
6 title array concat single line statement
7 ittf
8 concat myarray 0, 1, 2, [3, 4]
9 item
10 title array concat multi line statement
11 ittf
12 concat myarray
13 @ 0
14 @ 1
15 @ 2
16 [
17 @ 3
18 @ 4
19 item
20 title array concat mixed line statement
21 ittf
22 concat myarray 0, 1
23 @ 2
24 [
25 @ 3
26 @ 4
27 item
28 title array forEach statement with default thisArg
29 ittf
30 each item in myarray
31 set item.a = item.b / 2
32 item
33 title array forEach statement with explicit thisArg
34 ittf
35 each item in myarray myinstance
36 set item.a = item.b / 2
37 item
38 title array filter statement with default thisArg
39 ittf
40 filter item in myarray
41 return item.a == 10
42 item
43 title array filter statement with explicit thisArg
44 ittf
45 filter item in myarray myinstance
46 return item.a == this.maxAge
47 item
48 title array find statement with default thisArg
49 ittf
50 find item in myarray
51 return item.a == 10
52 item
53 title array find statement with explicit thisArg
54 ittf
55 find item in myarray myinstance
56 return item.a == this.maxAge
57 item
58 title array reduce statement
59 ittf
60 reduce item in myarray 0
61 return acc + item.a