inline underscore and lodash functions so you can remove that dependency