LendAndRegret/node_modules/es-toolkit/dist/compat/object/functionsIn.d.ts
2026-05-02 17:27:43 +08:00

21 lines
522 B
TypeScript

/**
* Returns an array of property names whose values are functions, including inherited properties.
*
* @param {*} object The object to inspect.
* @returns {Array} Returns the function names.
* @example
*
* function Foo() {
* this.a = function() { return 'a'; };
* this.b = function() { return 'b'; };
* }
*
* Foo.prototype.c = function() { return 'c'; };
*
* functionsIn(new Foo);
* // => ['a', 'b', 'c']
*/
declare function functionsIn<T extends {}>(object: any): string[];
export { functionsIn };