In-depth lesson · Prototype pollution
Reports behind this point
When testing a merge or extend helper, feed a nested key named for the prototype and check whether a property appears on all plain objects afterwards. For path-setting helpers, pass a path whose first segment names the prototype and see whether the assignment lands on the shared prototype. Always verify the effect on the prototype itself, not just on the returned object.