code: function transformElements(elements = []) {
    return (0, _map2.default)((0, _reject2.default)(elements, ['type', 'comment']), el => 'text' === el.type ? el.data : transformElement(el));
  }
docs: Converts an array of Cheerio Elements to an array of plain objects describing React Elements for easy
  serialization/unserialization.
  
  @memberof module:jsx
  @private
  @method transformElements
  @param {Array<Object>} [elements=[]] - Cheerio Elements
  @return {Array<string|Object>} an array of plain objects describing React Elements