回答編集履歴
1
コードの修正
test
CHANGED
@@ -31,8 +31,6 @@
|
|
31
31
|
const proto = Object.getPrototypeOf(obj);
|
32
32
|
|
33
33
|
if ( proto === null ) return [ ...Object.getOwnPropertyNames(obj).filter( p => obj[p] instanceof Function) ];
|
34
|
-
|
35
|
-
console.log ( obj, proto );
|
36
34
|
|
37
35
|
return [ ...Object.getOwnPropertyNames(obj).filter( p => obj[p] instanceof Function ), ...getMethodNameOf(proto)];
|
38
36
|
|