You can use Object.getOwnPropertyNames on the prototype:
Object.getOwnPropertyNames( Animal.prototype )
// [ 'constructor', 'getAnimalType' ]
More Related Contents:
- `export const` vs. `export default` in ES6
- Javascript – arrow functions this in event handler?
- Array.fill(Array) creates copies by references not by value [duplicate]
- How to import ES6 modules in content script for Chrome Extension
- How does this object method definition work without the “function” keyword?
- What is the temporal dead zone?
- Are ES6 classes just syntactic sugar for the prototypal pattern in Javascript?
- ES6 Array destructuring weirdness
- Get functions (methods) of a class [duplicate]
- Proper use of const for defining functions
- How to add multiple classes to a ReactJS Component?
- How to create an instance of a subclass from the super class?
- JavaScript ES6: Test for arrow function, built-in function, regular function?
- How can I construct a Template String from a regular string? [duplicate]
- Javascript: What is the difference between Function and Class
- Best way to polyfill ES6 features in React app that uses create-react-app
- What is the defined execution order of ES6 imports?
- JSON stringify ES6 class property with getter/setter
- How to create new instance of an extended class of custom elements
- Get the description of a ES6 Symbol
- How to loop over object properties with ngFor in Angular
- Using ‘let’ as a variable name is not throwing any errors in google v8
- Is this a good way to clone an object in ES6?
- How to create an array of objects from multiple arrays
- Why does .then() chained to Promise.resolve() allow const declaration to be reassigned?
- Javascript – Template Strings Don’t Pretty Print Objects
- How can the current number of i be accessed in a for of loop?
- How to bind methods when destructuring an object in JavaScript?
- Return object with default values from an array in JavaScript
- Deep nested array of objects not rendering