From a773ca5b7bb955204eb4782c5951bde68d206a6f Mon Sep 17 00:00:00 2001 From: Nikiroy78 <35032449+Nikiroy78@users.noreply.github.com> Date: Sun, 28 May 2023 22:51:19 +0300 Subject: [PATCH] Fix types.js Fix fatal error at types.js --- components/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/types.js b/components/types.js index b8f645f..3f7c998 100644 --- a/components/types.js +++ b/components/types.js @@ -88,7 +88,7 @@ const types = { return [false, undefined]; } // checking type of array - let isSyntax = Object.assign({}, value).filter(item => type.syntax(item, needs_convert)[0]).length == value.length; + let isSyntax = [].concat(value).filter(item => type.syntax(item, needs_convert)[0]).length == value.length; return [isSyntax, isSyntax ? value : undefined] } }), @@ -214,4 +214,4 @@ const types = { }; -module.exports = types; \ No newline at end of file +module.exports = types;