Skip to content

fromVariadicArgs

fromVariadicArgs<T>(args): readonly T[]

Defined in: packages/core/src/function/variadic-args.ts:42

Reduces either accepted argument shape to a single array.

T

VariadicArgs<T>

The raw rest arguments.

readonly T[]

The values. The array passed by the caller is returned as-is, not copied, so a function that reorders its input must take its own copy.