From 088758013284bf103f525bab4996f0014569b389 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 18 Jan 2019 19:48:16 +0900 Subject: [PATCH] Improve readability --- src/chart/index.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/chart/index.ts b/src/chart/index.ts index 58ab7f7f4f..b550e5eb4b 100644 --- a/src/chart/index.ts +++ b/src/chart/index.ts @@ -316,21 +316,9 @@ export default abstract class Chart { const res: ArrayValue = {} as any; /** - * [{ - * xxxxx: 1, yyyyy: 5 - * }, { - * xxxxx: 2, yyyyy: 6 - * }, { - * xxxxx: 3, yyyyy: 7 - * }] - * + * [{ foo: 1, bar: 5 }, { foo: 2, bar: 6 }, { foo: 3, bar: 7 }] * を - * - * { - * xxxxx: [1, 2, 3], - * yyyyy: [5, 6, 7] - * } - * + * { foo: [1, 2, 3], bar: [5, 6, 7] } * にする */ const dive = (x: Obj, path?: string) => {