tasks/webfont.js
function optionToArray(val, defVal) {
			if (val === undefined) {
				val = defVal;
			}
			if (!val) {
				return [];
			}
			if (typeof val !== 'string') {
				return val;
			}
			return val.split(',').map(_.trim);
		}
function optionToArray(val, defVal) {
			if (val === undefined) {
				val = defVal;
			}
			if (!val) {
				return [];
			}
			if (typeof val !== 'string') {
				return val;
			}
			return val.split(',').map(_.trim);
		}
function optionToArray ( val , defVal ) { if ( val === undefined ) { val = defVal ; } if ( ! val ) { return [ ] ; } if ( typeof val !== 'string' ) { return val ; } return val . split ( ',' ) . map ( _ . trim ) ; }
Helpers
 
Convert a string of comma separated words into an array

@param {String} val Input string
@param {String} defVal Default value
@return {Array}
Helpers Convert a string of comma separated words into an array