From 9e64478854c0e21d1d7f20cc9c6e1327c0bd0f83 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Wed, 7 Mar 2018 16:09:51 +0100 Subject: [PATCH] Make linter happy --- elements/linechart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/linechart.js b/elements/linechart.js index b8e011b..c91f210 100644 --- a/elements/linechart.js +++ b/elements/linechart.js @@ -107,7 +107,7 @@ class LineChart extends Component { return res; }); - const shapes = references.split(' ').filter(spec => !isNaN(parseFloat(spec))).map((spec, idx) => { + const shapes = references.split(' ').filter(spec => !Number.isNaN(parseFloat(spec))).map((spec, idx) => { let colorIdx = data.length + idx; if (colorIdx > colors.length) { // Start cycle again