I created a class that extends an array. I want to execute arbitrary code before calling the inherited push function.
class newArray extends Array{ //execute any logic require before pushing value onto array this.push(value) }
override inheritance ecmascript-6 class subclass
WorkTimePower
source share