Safely sets nested properties on an object using dot notation or an array of keys. Just-safe-set avoids errors by creating missing intermediary objects along the path, preventing "Cannot set property of undefined" errors. It prioritizes safety and simplicity, ensuring no unwanted side effects or mutations beyond the intended target. Lightweight and dependency-free, it's ideal for scenarios where resilient object manipulation is crucial. Returns the modified object.