I have two very similar functions that exist mainly for syntactic sugar.
deactivate = (el, seek) -> el.find(seek).removeClass("active")
activate = (el, seek) -> el.find(seek).addClass("active")
This allows me to write, for example:
activate $("#something"), ".child"
Using the above purely as an example, ignoring any logical errors with the JavaScript itself… how could this be refactored to be more dry?