Answers for "javascript list class properties"

0

javascript list class properties

function getClassProperties(instanceOfClass) {
  const proto = Object.getPrototypeOf(instanceOfClass);
  const names = Object.getOwnPropertyNames(proto);
  return names.filter(name => name != 'constructor');
}
Posted by: Guest on November-19-2020

Code answers related to "javascript list class properties"

Code answers related to "Javascript"

Browse Popular Code Answers by Language