source:
node_modules/es-toolkit/dist/compat/object/set.mjs@
ba17441
| Last change on this file since ba17441 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 164 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | import { updateWith } from './updateWith.mjs'; |
| 2 | ||
| 3 | function set(obj, path, value) { | |
| 4 | return updateWith(obj, path, () => value, () => undefined); | |
| 5 | } | |
| 6 | ||
| 7 | export { set }; |
Note:
See TracBrowser
for help on using the repository browser.
