Saving objects in localStorage which has a method
问题 The problem is that I am saving projects, which are made with project factory function. The projects also have addToDo method and I am saving this projects into myProjects array. I am struggling with, that when my projects are saved or retrieved to/from localStorage, they loose functionality (addToDo method). As after page refresh I can't add todos to the projects anymore. So I guess that method of project factory isn't saved to localStorage. Thanks. let newProject; let myProjects =