Answers for "get all methods of class node.js"

0

javascript get all methods of class

class Foo {
  public doSomething(){
    return 5;
  }
}

let foo = new Foo();
let propertyNames = Object.getOwnPropertyNames(Object.getPrototypeOf(foo));
Posted by: Guest on November-29-2021

Code answers related to "get all methods of class node.js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language