A small collection of functions for dealing with JavaScript functions