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;