code: function convertSizes(bidSizes) {
    let format;
    if (Array.isArray(bidSizes)) {
      if (bidSizes.length === 2 && typeof bidSizes[0] === 'number' && typeof bidSizes[1] === 'number') {
        format = [{w: bidSizes[0], h: bidSizes[1]}];
      } else {
        format = utils._map(bidSizes, d => { return {w: d[0], h: d[1]}; });
      }
    }
  
    return format;
  }
docs: Convert arrays of widths and heights to an array of objects with w and h properties.
  
  [[300, 250], [300, 600]] => [{w: 300, h: 250}, {w: 300, h: 600}]
  
  @param {number[2][]|number[2]} bidSizes - arrays of widths and heights
  @returns {object[]} Array of objects with w and h