code: function optimizeRequiredProperties( requiredProperties ) {
  		var arr = [];
  		for ( var propertyName in requiredProperties ) {
  			if ( propertyName.indexOf( '*' ) > -1 )
  				arr.push( new RegExp( '^' + propertyName.replace( /\*/g, '.*' ) + '$' ) );
  			else
  				arr.push( propertyName );
  		}
  		return arr;
  	}
docs: Extract properties names from the object and replace those containing wildcards with regexps. Note: there's a room for performance improvement. Array of mixed types breaks JIT-compiler optiomization what may invalidate compilation of pretty a lot of code.  @returns An array of strings and regexps.