Answers for "js check if function is a constructor"

0

js check if function is a constructor

function isConstructor(func) {
    return (func && typeof func === "function" && func.prototype && func.prototype.constructor) === func;
}
Posted by: Guest on September-05-2020

Code answers related to "js check if function is a constructor"

Code answers related to "Javascript"

Browse Popular Code Answers by Language