Creates a new function that spreads elements of an array argument into individual arguments for the original function.
A function type with any number of parameters and any return type.
The function to be transformed. It can be any function with any number of arguments.
function add(a, b) { return a + b;}const spreadAdd = spread(add);console.log(spreadAdd([1, 2])); // Output: 3 Copy
function add(a, b) { return a + b;}const spreadAdd = spread(add);console.log(spreadAdd([1, 2])); // Output: 3
Alias