Port of some underscore-js functions for meteor ui.