source: node_modules/es-toolkit/dist/compat/object/functionsIn.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: 522 bytes
Line 
1/**
2 * Returns an array of property names whose values are functions, including inherited properties.
3 *
4 * @param {*} object The object to inspect.
5 * @returns {Array} Returns the function names.
6 * @example
7 *
8 * function Foo() {
9 * this.a = function() { return 'a'; };
10 * this.b = function() { return 'b'; };
11 * }
12 *
13 * Foo.prototype.c = function() { return 'c'; };
14 *
15 * functionsIn(new Foo);
16 * // => ['a', 'b', 'c']
17 */
18declare function functionsIn<T extends {}>(object: any): string[];
19
20export { functionsIn };
Note: See TracBrowser for help on using the repository browser.