In Sway, an Array is a fixed-size collection of elements of the same type, similar to a Tuple. Arrays can hold arbitrary types, including non-primitive types, with their size determined at compile time.
You can pass a TypeScript Array into your contract method seamlessly just like you would pass an Array to a TypeScript function.
The SDK handles the conversion from TypeScript to Sway in the background, allowing the expected data to be passed through the type regardless of the Array type.
An Array in Sway is simply a typed Array, as demonstrated in the following example: