@newdash/newdash
Version:
javascript/typescript utility library
26 lines (25 loc) • 513 B
TypeScript
/**
* Creates an array of function property names from own enumerable properties
* of `object`.
*
* @since 5.12.0
* @category Object
* @param object The object to inspect.
* @returns Returns the function names.
* @see [[functionsIn]]
* @example
*
* ```js
* function Foo() {
* this.a = () => 'a'
* this.b = () => 'b'
* }
*
* Foo.prototype.c = () => 'c'
*
* functions(new Foo)
* // => ['a', 'b']
* ```
*/
export declare function functions(object: any): string[];
export default functions;