src/Widget.js
/**
         * Formats the value as an array of strings
         * @param converter
         * @return {Field}
         */
Formats the value as an array of strings
@param converter
@return {Field}
Formats the value as an array of strings @param converter @return { Field }
array(converter) {
            this._convert = (val) => {
                if (Array.isArray(val)) {
                    if (converter) {
                        return val.map((v) => converter(v))
                    } else {
                        return val;
                    }
                }
                val = val.replace(/\\,/g, '\0');
                return val.split(',').map((v) => {
                    let res = v.trim().replace('\0', ',');
                    if (converter) res = converter(res);
                    return res;
                });
            };
            return this;
        }
array ( converter ) { this . _convert = ( val ) => { if ( Array . isArray ( val ) ) { if ( converter ) { return val . map ( ( v ) => converter ( v ) ) } else { return val ; } } val = val . replace ( / \\, / g , '\0' ) ; return val . split ( ',' ) . map ( ( v ) => { let res = v . trim ( ) . replace ( '\0' , ',' ) ; if ( converter ) res = converter ( res ) ; return res ; } ) ; } ; return this ; }
Formats the value as an array of strings
 @param converter
 @return {Field}
Formats the value as an array of strings @param converter @return { Field }