function splitNewlines(str) {
  if ((typeof str === 'string' || str instanceof String) && str.indexOf('\n') > -1) {
    return str.split('\n');
  }
  return str;
}
Returns array of strings split by newline
@param {*} str - The value to split by newline.
@returns {string|string[]} value if newline present - Returned from String split() method
@function