The @variadic decorator is used to model JavaScript functions that take a variable number of arguments, where all arguments are of the same type.
@variadic
@val @variadic @scope("Math") external max: array<int> => int = "max" let result = max([5, -2, 6, 1])
Variadic Function Arguments