1.0.0 • Published 6 years ago

@entrptaher/simple-property-retriever v1.0.0

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
6 years ago

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' ]