We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e26c4d2 commit 80b7176Copy full SHA for 80b7176
ember-set-helper/src/helpers/set.ts
@@ -12,7 +12,7 @@ export default function set<T extends object, K extends keyof T & string>(
12
typeof path === 'symbol' ||
13
typeof path === 'number',
14
);
15
- return arguments.length === 3
+ return arguments.length === 3 && maybeValue !== undefined
16
? () => emberSet(target, path, maybeValue)
17
: (value: T[K]) => emberSet(target, path, value);
18
}
0 commit comments