source: node_modules/es-toolkit/dist/compat/object/functions.d.mts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 460 bytes
RevLine 
[a762898]1/**
2 * Creates an array of property names from an object where the property values are functions.
3 *
4 * @param {any} object - The object to inspect.
5 * @returns {string[]} - An array of function property names.
6 *
7 * @example
8 * function Foo() {
9 * this.a = () => 'a';
10 * this.b = () => 'b';
11 * }
12 *
13 * Foo.prototype.c = () => 'c';
14 *
15 * functions(new Foo);
16 * // => ['a', 'b']
17 */
18declare function functions(object: any): string[];
19
20export { functions };
Note: See TracBrowser for help on using the repository browser.