Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / chain-able / src / deps / string / classNames.js
Size: Mime:
"use strict";

/**
 * @example get className() {return classNames(this)}
 * @memberOf string
 * @param  {Object} _c
 * @return {string}
 */
module.exports = function classNames(_c) {
  let className = _c.constructor.name;
  let c = _c;
  let l = 0;

  while (c = Object.getPrototypeOf(c)) {
    if (l++ > 11) break;
    className += '.' + c.constructor.name;
  }

  return className;
};