JavaScript tricks – use lambdas to improve your utility functions
beautiful-js.com