From 0534eab9c78dd449bd6cf1ab72424107f5be60af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Billioud?= Date: Wed, 22 May 2024 08:31:44 +0200 Subject: [PATCH] Fix another typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cbd8f2b..9aa7672 100644 --- a/index.js +++ b/index.js @@ -190,7 +190,7 @@ const renderRadarChart = (columnsData, data, opt = {}) => { if (!Array.isArray(data)) { throw new Error('data must be an array'); } - if (data.some(data => Object.keys(data).map(key => key !== 'class' && typeof data[key] !== 'number'))) { + if (data.some(data => Object.keys(data).some(key => key !== 'class' && typeof data[key] !== 'number'))) { throw new Error('data must contain set of numbers'); } const options = /** @type {ExtendedOptions} */({ ...defaults, ...opt, chartSize: 0 });