"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayToCsvFormatter = void 0;
const utils_1 = require("@slickgrid-universal/utils");
/** Takes an array of string and converts it to a comma delimited string */
const arrayToCsvFormatter = (_row, _cell, value) => {
    if (Array.isArray(value) && value.length > 0) {
        const values = value.join(', ');
        return (0, utils_1.createDomElement)('span', { title: values, textContent: values });
    }
    return value;
};
exports.arrayToCsvFormatter = arrayToCsvFormatter;
//# sourceMappingURL=arrayToCsvFormatter.js.map