lodash version, for fun