fixes
This commit is contained in:
parent
b8a0f540a3
commit
a62487b36b
7 changed files with 16 additions and 19 deletions
|
|
@ -37,11 +37,7 @@ export const paramsString = (params = {}) => {
|
|||
|
||||
arrays.forEach(([k, array]) => {
|
||||
array.forEach((v) => {
|
||||
if (
|
||||
typeof v === 'object' ||
|
||||
typeof v === 'function' ||
|
||||
v === undefined
|
||||
)
|
||||
if (typeof v === 'object' || typeof v === 'function' || v === undefined)
|
||||
throw new TypeError('Array param cannot contain non-primitives!')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue