LendAndRegret/node_modules/es-toolkit/dist/compat/object/set.mjs
2026-05-02 17:27:43 +08:00

8 lines
164 B
JavaScript

import { updateWith } from './updateWith.mjs';
function set(obj, path, value) {
return updateWith(obj, path, () => value, () => undefined);
}
export { set };