'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var is = require('./is.js');

function classNames(...args) {
  const classes = [];
  for (let i = 0; i < args.length; i++) {
    const value = args[i];
    if (!value)
      continue;
    if (is.isString(value)) {
      classes.push(value);
    } else if (is.isArray(value)) {
      for (let i2 = 0; i2 < value.length; i2++) {
        const inner = classNames(value[i2]);
        if (inner)
          classes.push(inner);
      }
    } else if (is.isObject(value)) {
      for (const name in value) {
        if (value[name])
          classes.push(name);
      }
    }
  }
  return classes.join(" ");
}

exports.default = classNames;
//# sourceMappingURL=classNames.js.map
