Coffeekraken.io 0.0.1

constructorName

Return the constructor name of the passed object

Name Type Description Status Default
obj { Object } The object to get the constructor name from required

Return { String } The constructor name

Example

    class MyCoolClass {
        // class implementation...
}
const myObj = new MyCoolClass();
console.log(constructorName(myObj)); => MyCoolClass

Author : Olivier Bossel olivier.bossel@gmail.com