All files / Select/functions stringifyValue.js

87.5% Statements 7/8
90% Branches 9/10
100% Functions 0/0
87.5% Lines 7/8
1 2 3 4 5 6 7 8 9 10 11 12 13  47x 47x   47x 2x 45x 1x   44x      
export default (value) => {
	const valueType = typeof value;
	Iif (valueType === 'string') {
		return value;
	} else if (valueType === 'object') {
		return JSON.stringify(value);
	} else if (valueType === 'number' || valueType === 'boolean') {
		return String(value);
	} else {
		return '';
	}
}