From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/data/randomdata.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'app/data/randomdata.tsx') diff --git a/app/data/randomdata.tsx b/app/data/randomdata.tsx index f24a2ba..844f36f 100644 --- a/app/data/randomdata.tsx +++ b/app/data/randomdata.tsx @@ -1,11 +1,11 @@ export default function genRandomTree(N = 300, reverse = false) { return { - nodes: [...Array(N).keys()].map(i => ({ id: i })), - links: [...Array(N).keys()] - .filter(id => id) - .map(id => ({ - [reverse ? 'target' : 'source']: id, - [reverse ? 'source' : 'target']: Math.round(Math.random() * (id-1)) - })) - }; + nodes: [...Array(N).keys()].map((i) => ({ id: i })), + links: [...Array(N).keys()] + .filter((id) => id) + .map((id) => ({ + [reverse ? 'target' : 'source']: id, + [reverse ? 'source' : 'target']: Math.round(Math.random() * (id - 1)), + })), + } } -- cgit v1.2.3