@entrptaher/simple-property-retriever
v1.0.0
Published
Get Object properties, taken from MDN.
Downloads
1
Readme
Get Object properties, taken from MDN.
Example Usage
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
get area() {
return this.calcArea();
}
calcArea() {
return this.height * this.width;
}
}
console.log(ret.getOwnNonenumerables(Rectangle.prototype));
// [ 'constructor', 'area', 'calcArea' ]