Fix types.js
Fix fatal error at types.js
This commit is contained in:
parent
1fe6295af0
commit
a773ca5b7b
@ -88,7 +88,7 @@ const types = {
|
|||||||
return [false, undefined];
|
return [false, undefined];
|
||||||
}
|
}
|
||||||
// checking type of array
|
// 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]
|
return [isSyntax, isSyntax ? value : undefined]
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user