removed duplicate of an already existing function from lodash