Create a function in Python to generate an array of numbers, each element in the array being twice the value of its previous one.
Size of Array: 10
def generate_double_array(size):
	arr = [1]
	for i in range(1, size):
		arr.append(arr[i - 1] * 2)
	return arr