"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flattenV5CurrenciesAll = void 0;
function flattenV5CurrenciesAll(response) {
    const flattenedAll = [...response.from, ...response.to].reduce((acc, curr) => {
        return [...acc, ...curr.supportedCurrencies];
    }, []);
    return Array.from(new Set(flattenedAll));
}
exports.flattenV5CurrenciesAll = flattenV5CurrenciesAll;
//# sourceMappingURL=flattenV5CurrenciesAll.js.map