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

21 lines
460 B
TypeScript

/**
* Creates an array of property names from an object where the property values are functions.
*
* @param {any} object - The object to inspect.
* @returns {string[]} - An array of function property names.
*
* @example
* function Foo() {
* this.a = () => 'a';
* this.b = () => 'b';
* }
*
* Foo.prototype.c = () => 'c';
*
* functions(new Foo);
* // => ['a', 'b']
*/
declare function functions(object: any): string[];
export { functions };