Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

16
node_modules/es-toolkit/dist/compat/object/update.mjs generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import { updateWith } from "./updateWith.mjs";
//#region src/compat/object/update.ts
/**
* Updates the value at the specified path of the given object using an updater function.
* If any part of the path does not exist, it will be created.
*
* @param {object} obj - The object to modify.
* @param {PropertyPath} path - The path of the property to update.
* @param {(value: any) => any} updater - The function to produce the updated value.
* @returns {any} - The modified object.
*/
function update(obj, path, updater) {
return updateWith(obj, path, updater, () => void 0);
}
//#endregion
export { update };