8 lines
164 B
JavaScript
8 lines
164 B
JavaScript
import { updateWith } from './updateWith.mjs';
|
|
|
|
function set(obj, path, value) {
|
|
return updateWith(obj, path, () => value, () => undefined);
|
|
}
|
|
|
|
export { set };
|