The front end Js prototype December 29, 2023 by 高靜宜 No Comments // Prints information about the object prototype chain function getPrototypeChain(obj){ let list = []; while(obj = Object.getPrototypeOf(obj)){ list.push(obj) } list.push(null) return list } Copy the code