const createParam = (name: string, value: any) => `${encodeURIComponent(name)}=${encodeURIComponent(value)}`; const urlAddParam = (url: string, name: string, value: any) => `${url}${url.indexOf("?") < 0 ? "?" : "&"}${createParam(name, value)}`;
548500cookie-checkTypescript: Add query parameter to url