Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Return a new function that prepends the preset arguments to any later arguments, then calls the original function with the combined list. Extend with placeholder support by scanning preset arguments for a sentinel symbol and replacing those positions with later arguments in order.
Closures capture the preset arguments so they persist across calls, and spread syntax cleanly concatenates preset and later arguments into a single invocation of the original function.
Updated Mar 2026