I have a spreadsheet, and I have shared it with 50 people for the editor role. I have written some js codes in the app script but unfortunately, someone removed my code and the spreadsheet has been affected for that reason.
I need a solution so that no one views or accesses my app script code who has an editor role.
Update: I got an answer from @doubleunary, and a good suggestion. Now my question is if i use this method and if someone re-write some codes using Extention > App Script from the spreadsheet menu, then they can override or make something new. How can I protect this issue also?