swapped underscore for lodash based on benchmark tests