hide the getter or add in the proto Object
问题 is a way how i can create a getter, but hide it or add it in proto ? example here, i use simple OBJ. Look get sprite() buttonsData[name] = { name:name, type:bType, slot:slot, get sprite() { return this.slot.currentSprite }, }; but I find it very polluting, how can I hide it or write it so that it does not disturb my eyes in a debug terminal? i want hide get sprite() { return this.slot.currentSprite } 回答1: You can embed an anonymous prototype using Object.create(), though do note that this