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

24
node_modules/es-toolkit/dist/compat/util/invoke.d.mts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
//#region src/compat/util/invoke.d.ts
/**
* Invokes the method at `path` of `object` with the given arguments.
*
* @param {any} object - The object to query.
* @param {PropertyKey | PropertyKey[]} path - The path of the method to invoke.
* @param {any[]} args - The arguments to invoke the method with.
* @returns {any} - Returns the result of the invoked method.
*
* @example
* const object = {
* a: {
* b: function (x, y) {
* return x + y;
* }
* }
* };
*
* invoke(object, 'a.b', [1, 2]); // => 3
* invoke(object, ['a', 'b'], [1, 2]); // => 3
*/
declare function invoke(object: any, path: PropertyKey | readonly PropertyKey[], ...args: any[]): any;
//#endregion
export { invoke };