license param value param separator export function coerceStringArray ( value , separator = /\s+/ ) { const result = [ ] ; if ( value != null ) { const sourceValues = Array . isArray ( value ) ? value : `${ value }` . split ( separator ) ; for ( const sourceValue of sourceValues ) { const trimmedString = `${ sourceValue }` . trim ( ) ; if ( trimmedString ) { result . push ( trimmedString ) ; } } } return result ; }