Skip to content

Commit

Permalink
result4 の作成部分を修正(その3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jun68ykt committed Aug 9, 2019
1 parent cce9467 commit 16bcf50
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.js
Expand Up @@ -18,11 +18,10 @@ document.addEventListener('DOMContentLoaded', function() {
line => line.split(/\s+/).slice(0, 5)
);

var result4 = result3.map(ary => ary.map(e => [e]));

result4 = result4.map(ary => ary.map(
(a, i) => (i <= 3 ? [ary[4][0], 10**(3-i), a[0]] : a)
));
var result4 = result3.map(
ary => ary.map(
(e, i) => (i <= 3 ? [ary[4], 10**(3-i), e] : [e])
));

console.log(result4);

Expand Down

0 comments on commit 16bcf50

Please sign in to comment.