This commit is contained in:
Henry Jameson 2026-08-04 21:14:09 +03:00
commit a62487b36b
7 changed files with 16 additions and 19 deletions

View file

@ -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!')
})
})