Write a value at a key path, creating intermediate plain objects, and refusing any segment that would pollute the prototype chain.
The target object (mutated).
The key path.
The value to set.
Write a value at a key path, creating intermediate plain objects, and refusing any segment that would pollute the prototype chain.