I know there are lots of similar questions out there but somehow I did not find anything for this problem - can you point me in the right direction
Let's say we have a function
window.logMeThis = function(msg){
console.log(msg);
}
then I need to add an event listener
window.addEventListener('keypress', window.logMeThis.bind(null, "something"));
which looks good at first - but .bind creates a new fn
and now I can't remove the listener
window.removeEventListener('keypress', window.logMeThis);