Thank you 😁
Yeah I’ve seen about Object Assign as a potential solution, especially for simple objects like here. But it doesn’t do a deep copy and isn’t suitable if you’re populating a more complicated form.
I think the best solution then would be to use something like lodash clone.
Thank you for your response! You’re right, constantly being victim to power cuts is bound to have some sort of horrible effect, but the idea is that the pi is supposed to shutdown when power or at least boot up when it returns .
Say the power is out while I’m at home and I would like to know when it returns, so I plug it in…