Change _.reduce argument to be generic