off topic...could we use lodash for this now?