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
Iterate over each source object, copying its own enumerable string-keyed properties to the target using Object.keys, and its enumerable symbol-keyed properties using Object.getOwnPropertySymbols. Skip null/undefined sources and throw on null/undefined target.
Copying only own enumerable properties with Object.keys matches the native Object.assign specification, and later sources naturally overwrite earlier ones for the same key.
Updated Feb 2026