modules/adtelligentBidAdapter.js
function (serverResponse, {bidderRequest}) {
    serverResponse = serverResponse.body;
    let bids = [];

    if (!utils.isArray(serverResponse)) {
      return parseRTBResponse(serverResponse, bidderRequest);
    }

    serverResponse.forEach(serverBidResponse => {
      bids = utils.flatten(bids, parseRTBResponse(serverBidResponse, bidderRequest));
    });

    return bids;
  }
function (serverResponse, {bidderRequest}) {
    serverResponse = serverResponse.body;
    let bids = [];

    if (!utils.isArray(serverResponse)) {
      return parseRTBResponse(serverResponse, bidderRequest);
    }

    serverResponse.forEach(serverBidResponse => {
      bids = utils.flatten(bids, parseRTBResponse(serverBidResponse, bidderRequest));
    });

    return bids;
  }
function ( serverResponse , { bidderRequest } ) { serverResponse = serverResponse . body ; let bids = [ ] ; if ( ! utils . isArray ( serverResponse ) ) { return parseRTBResponse ( serverResponse , bidderRequest ) ; } serverResponse . forEach ( serverBidResponse => { bids = utils . flatten ( bids , parseRTBResponse ( serverBidResponse , bidderRequest ) ) ; } ) ; return bids ; }
Unpack the response from the server into a list of bids
@param serverResponse
@param bidderRequest
@return {Bid[]} An array of bids which were nested inside the server
Unpack the response from the server into a list of bids