This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/object/setWith.js
T

19 lines
452 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const updateWith = require('./updateWith.js');
function setWith(obj, path, value, customizer) {
let customizerFn;
if (typeof customizer === 'function') {
customizerFn = customizer;
}
else {
customizerFn = () => undefined;
}
return updateWith.updateWith(obj, path, () => value, customizerFn);
}
exports.setWith = setWith;