lv5JavaScript변수 이름목록으로

가려진 이름은 무엇일까요?

코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.

buildURL.jslib/helpers
1function buildURL(url, params, options) {
2  if (!params) {
3    return url;
4  }
5  url = url || '';
6  
7  const _options = utils.isFunction(options)
8    ? {
9        serialize: options,
10      }
11    : options;
12  
13  const _encode = utils.getSafeProp(_options, 'encode') || encode;
14  const  = utils.getSafeProp(_options, 'serialize');
15  
16  let serializedParams;
17  
18  if () {
19    serializedParams = (params, _options);
20  } else {
21    serializedParams = utils.isURLSearchParams(params)
22      ? params.toString()
23      : new AxiosURLSearchParams(params, _options).toString(_encode);
24  }
25  
26  if (serializedParams) {
27    const hashmarkIndex = url.indexOf('#');
28    
29    if (hashmarkIndex !== -1) {
30      url = url.slice(0, hashmarkIndex);
31    }
32    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
33  }
34  
35  return url;
36}