packages/oss-report-builder/index.js
function readObjectValue(object) {
	let result = ''

	if (typeof object === 'string' || object instanceof String) {
		result = object
	} else if (typeof object === 'number' || object instanceof Number) {
		result = object.toString()
	} else if (object) {
		Object.keys(object).forEach(key => {
			result += key + ': ' + object[key] + '\t'
		})
	}

	if (!result.length) {
		result = 'Not Specified'
	}

	return result.replace(new RegExp('"', 'g'), '""')
}
function readObjectValue(object) {
	let result = ''

	if (typeof object === 'string' || object instanceof String) {
		result = object
	} else if (typeof object === 'number' || object instanceof Number) {
		result = object.toString()
	} else if (object) {
		Object.keys(object).forEach(key => {
			result += key + ': ' + object[key] + '\t'
		})
	}

	if (!result.length) {
		result = 'Not Specified'
	}

	return result.replace(new RegExp('"', 'g'), '""')
}
function readObjectValue ( object ) { let result = '' if ( typeof object === 'string' || object instanceof String ) { result = object } else if ( typeof object === 'number' || object instanceof Number ) { result = object . toString ( ) } else if ( object ) { Object . keys ( object ) . forEach ( key => { result += key + ': ' + object [ key ] + '\t' } ) } if ( ! result . length ) { result = 'Not Specified' } return result . replace ( new RegExp ( '"' , 'g' ) , '""' ) }
Converts an object representing a JSON property to a CSV compatible string.

@method readObjectValue
@param {Object} object - The object to read as a string.
@returns {String}
Converts an object representing a JSON property to a CSV compatible string .