function constructYamlPairs(data) {
  if (data === null) return [];

  var index, length, pair, keys, result,
      object = data;

  result = new Array(object.length);

  for (index = 0, length = object.length; index < length; index += 1) {
    pair = object[index];

    keys = Object.keys(pair);

    result[index] = [ keys[0], pair[keys[0]] ];
  }

  return result;
}
Optionally wrap the given str to a max width of width characters per line
while indenting with indent spaces. Do not wrap if insufficient width or
string is manually formatted.

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