lv5JavaScript함수 이름목록으로

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

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

utils.jslib
1 = (thing, prop) => {
2  let obj = thing;
3  const seen = [];
4  
5  while (obj != null) {
6    if (seen.indexOf(obj) !== -1) {
7      return false;
8    }
9    seen.push(obj);
10    
11    const prototype = getPrototypeOf(obj);
12    
13    if (isPrototypeBoundary(obj, prototype, obj === thing)) {
14      return false;
15    }
16    
17    if (hasOwnProperty(obj, prop)) {
18      return true;
19    }
20    obj = prototype;
21  }
22  return false;
23}