Robots.js
function trimLine(line) {
	if (!line) {
		return null;
	}

	if (Array.isArray(line)) {
		return line.map(trimLine);
	}

	return String(line).trim();
}
function trimLine(line) {
	if (!line) {
		return null;
	}

	if (Array.isArray(line)) {
		return line.map(trimLine);
	}

	return String(line).trim();
}
function trimLine ( line ) { if ( ! line ) { return null ; } if ( Array . isArray ( line ) ) { return line . map ( trimLine ) ; } return String ( line ) . trim ( ) ; }
Trims the white space from the start and end of the line.

If the line is an array it will strip the white space from
the start and end of each element of the array.

@param  {string|Array} line
@return {string|Array}
@private
Trims the white space from the start and end of the line .