'use strict';

var index = require('../_util/props-util/index.js');

const isValid = (value) => {
  return value !== void 0 && value !== null && (Array.isArray(value) ? index.filterEmpty(value).length : true);
};
function hasPrefixSuffix(propsAndSlots) {
  return isValid(propsAndSlots.prefix) || isValid(propsAndSlots.suffix) || isValid(propsAndSlots.allowClear);
}
function hasAddon(propsAndSlots) {
  return isValid(propsAndSlots.addonBefore) || isValid(propsAndSlots.addonAfter);
}

exports.hasAddon = hasAddon;
exports.hasPrefixSuffix = hasPrefixSuffix;
//# sourceMappingURL=util.js.map
