<# const defaultValue = { start: '', span: '', end: '', } const value = { ...defaultValue, ...data.value } const formatCSSValue = ( start = null, span = null, end = null ) => { let string = [] if ( '' !== start ) { string.push(start) } if ( '' !== span ) { string.push(`span ${span}`) } if ( end && ( !start || !span ) ) { string.push(end) } return string.join(' / ') } const cssString = formatCSSValue( value.start, value.span, value.end ) #>