factoryWithTypeCheckers.js
function getClassName(propValue) {
    if (!propValue.constructor || !propValue.constructor.name) {
      return ANONYMOUS;
    }
    return propValue.constructor.name;
  }
function getClassName(propValue) {
    if (!propValue.constructor || !propValue.constructor.name) {
      return ANONYMOUS;
    }
    return propValue.constructor.name;
  }
function getClassName ( propValue ) { if ( ! propValue . constructor || ! propValue . constructor . name ) { return ANONYMOUS ; } return propValue . constructor . name ; }
Returns class name of the object, if any.
Returns class name of the object if any .