Is there a tool to remove unused methods in javascript? May 12, 2023 by Tarik No. Because you can “use” methods in insanely dynamic ways like this. obj[prompt("Gimme a method name.")]();