Skip to content

Tag: function

is it possible to combine these two functions into one?

I have two functions that are basically identical. The first function gets passed a mouse event where event.target is the input type=’checkbox’ the second function gets passed the input type=’checkbox’ is there a way to rewrite these into one function? Answer The only part of these two…