Refactoring done as fd17491c66764ad5950e4089ae639b866c086b73 broke this code: _.deepExtend({ ... }, { ... }, undefined); The check for `undefined` is missing. You should write unit tests before making substantial changes to the code.