Lets say I have an array of functions x = [f1,f2,f3,f4] created by my user, this user can also remove them later on in code.
So my question is, how can a user ask to remove f3 for example if he doesn't know its position?
My idea is to have a function called x.remove(f3) and I need to compare the pointers of the argument and my array items, but how can I do it in JS?