回答編集履歴
1
さらに短くした
test
CHANGED
@@ -10,19 +10,13 @@
|
|
10
10
|
|
11
11
|
for (let j=0; j<3; j++){
|
12
12
|
|
13
|
-
|
13
|
+
data.push(
|
14
14
|
|
15
|
-
le
|
15
|
+
obj.slice(j*63,(j+1)*63).map(e=>e.x),
|
16
16
|
|
17
|
-
|
17
|
+
obj.slice(j*63,(j+1)*63).map(e=>e.y)
|
18
18
|
|
19
|
-
sub0.push(obj[j*63+i].x);
|
20
|
-
|
21
|
-
sub1.push(obj[j*63+i].y);
|
22
|
-
|
23
|
-
|
19
|
+
);
|
24
|
-
|
25
|
-
data.push(sub0,sub1);
|
26
20
|
|
27
21
|
}
|
28
22
|
|