Sets the value at the specified path of the object. If the path does not exist, it is created. Prevents prototype pollution by checking key safety.
The object to modify.
The path of the property to set, represented as a dot-separated string.
The value to set at the specified path.
Sets the value at the specified path of the object. If the path does not exist, it is created. Prevents prototype pollution by checking key safety.