function constructYamlOmap(data) {
  return data !== null ? data : [];
}
Wraps the given string with line breaks at the specified width while breaking
words and indenting every but the first line on the left.

@param {string} str
@param {number} width
@param {number} indent
@return {string}
@api private