public/ckeditor/4.4dev/core/tools.js
function( arr, fillWith ) {
			var obj = {};

			if ( arguments.length == 1 )
				fillWith = true;

			for ( var i = 0, l = arr.length; i < l; ++i )
				obj[ arr[ i ] ] = fillWith;

			return obj;
		}
function( arr, fillWith ) {
			var obj = {};

			if ( arguments.length == 1 )
				fillWith = true;

			for ( var i = 0, l = arr.length; i < l; ++i )
				obj[ arr[ i ] ] = fillWith;

			return obj;
		}
function ( arr , fillWith ) { var obj = { } ; if ( arguments . length == 1 ) fillWith = true ; for ( var i = 0 , l = arr . length ; i < l ; ++ i ) obj [ arr [ i ] ] = fillWith ; return obj ; }
Converts an array to an object by rewriting array items
to object properties.

var arr = [ 'foo', 'bar', 'foo' ];
console.log( CKEDITOR.tools.convertArrayToObject( arr ) );
// -> { foo: true, bar: true }
console.log( CKEDITOR.tools.convertArrayToObject( arr, 1 ) );
// -> { foo: 1, bar: 1 }

@since 4.1
@param {Array} arr The array to be converted to an object.
@param [fillWith=true] Set each property of an object to `fillWith` value.
Converts an array to an object by rewriting array items to object properties .