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    
@filerobot/utils / lib / clsx.js
Size: Mime:
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
/**
 * @param {{[key:string]:boolean}} classes
 * @returns {string}
 */
function clsx(classes) {
  if (_typeof(classes) !== 'object') {
    throw new Error('invalid params');
  }
  return Object.keys(classes).filter(function (key) {
    return classes[key] === true;
  }).join(' ');
}
export default clsx;