assets/ckeditor/tests/_benderjs/ckeditor/lib/testbuilder.js
// converts recursively strings found in an object to arrays
converts recursively strings found in an object to arrays
converts recursively strings found in an object to arrays
function convert( obj ) {
		if ( typeof obj == 'string' ) {
			return obj.trim().split( /\s*,\s*/ );
		}
		if ( obj && typeof obj == 'object' && !Array.isArray( obj ) ) {
			Object.keys( obj ).forEach( function( key ) {
				obj[ key ] = convert( obj[ key ] );
			} );
		}
		return obj;
	}
function convert ( obj ) { if ( typeof obj == 'string' ) { return obj . trim ( ) . split ( / \s*,\s* / ) ; } if ( obj && typeof obj == 'object' && ! Array . isArray ( obj ) ) { Object . keys ( obj ) . forEach ( function ( key ) { obj [ key ] = convert ( obj [ key ] ) ; } ) ; } return obj ; }
converts recursively strings found in an object to arrays
converts recursively strings found in an object to arrays