export const csvStrToArray = csvStr => {
    const arr = csvStr.split(',');
    return arr;
};
export const csvStrToArrayOfObjects = csvStr => {
    const arr = csvStr.split(',');
    const arrObj = [];
    arr.forEach((value, index) => {
        arrObj.push({ id: index + 1, value: value });
    });
    return arrObj;
};
export const apiResponseArrayToOptions = responseArr => {
    if (!responseArr || !responseArr.length) {
        return [];
    }
    const arrObj = [];
    if (typeof responseArr[0] === 'string') {
        responseArr.forEach((value, index) => {
            arrObj.push({ id: index + 1, value: value });
        });
    }
    return arrObj;
};
//# sourceMappingURL=SelectUtilities.js.map