export function getLastParameterObjects(params) {
    const lastParams = [];
    params.forEach((curParam, index) => {
        if (params.map((p) => `${p.name}#${p.in}`).lastIndexOf(`${curParam.name}#${curParam.in}`) == index) {
            lastParams.push(params[index]);
        }
    });
    return lastParams;
}
export function getLastReferenceObjects(params) {
    const lastParams = [];
    params.forEach((param, index) => {
        if (params.map((p) => p.$ref).lastIndexOf(param.$ref) == index) {
            lastParams.push(params[index]);
        }
    });
    return lastParams;
}
//# sourceMappingURL=get-last-params.js.map