Clifton Fadiman said this quote

A sense of humor is the ability to understand a joke - and that the joke is oneself.