console.log(Object.getOwnPropertyNames(Array.prototype));
/* [
'length', 'constructor', 'concat',
'copyWithin', 'fill', 'find',
'findIndex', 'lastIndexOf', 'pop',
'push', 'reverse', 'shift',
'unshift', 'slice', 'sort',
'splice', 'includes', 'indexOf',
'join', 'keys', 'entries',
'values', 'forEach', 'filter',
'flat', 'flatMap', 'map',
'every', 'some', 'reduce',
'reduceRight', 'toLocaleString', 'toString'
]
*/
console.log(Object.getOwnPropertyNames(Array.__proto__));
/* [
'length', 'name',
'arguments', 'caller',
'constructor', 'apply',
'bind', 'call',
'toString'
]
*/
[[Prototype]]의 구현체가 __proto__ 라고하던데
그럼 .prototype은 뭔지 알 수 있을까요..
__proto__ 는 지원중지된거 대충 Object.getPrototypeof 하면 나오는거 - whatever we can do it
아 다적기 귀찮네 mdn보셈 - whatever we can do it
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
- whatever we can do it