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

23
node_modules/es-toolkit/dist/compat/util/methodOf.d.ts generated vendored Normal file
View File

@@ -0,0 +1,23 @@
//#region src/compat/util/methodOf.d.ts
/**
* Creates a function that invokes the method at a given path of `object` with the provided arguments.
*
* @param {object} object - The object to query.
* @param {...any} args - The arguments to invoke the method with.
* @returns {(path: PropertyKey | PropertyKey[]) => any} - Returns a new function that takes a path and invokes the method at `path` with `args`.
*
* @example
* const object = {
* a: {
* b: function (x, y) {
* return x + y;
* }
* }
* };
*
* const add = methodOf(object, 1, 2);
* console.log(add('a.b')); // => 3
*/
declare function methodOf(object: object, ...args: any[]): (path: PropertyKey | readonly PropertyKey[]) => any;
//#endregion
export { methodOf };