I came across this set of codes and would like to understand why can we pass an array to a type array and what is the output? Is it a method found in array?
type