import {isDef} from '@vueuse/core'; import {type OneOrMore, toArray} from '@myparcel/ts-utils'; export const encodeArrayParameter = (parameter?: null | OneOrMore): string => { return toArray(parameter).filter(isDef).join(';'); };