Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const assignProp = (obj, prop, value, options) => {
deleteProperty(obj, prop);

} else if (options && options.merge) {
const merge = options.merge === 'function' ? options.merge : Object.assign;
const merge = typeof options.merge === 'function' ? options.merge : Object.assign;

// Only merge plain objects
if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
Expand Down