Creates an array of function property names from own enumerable properties of object.
object
The object to inspect.
Returns the function names.
5.12.0
[[functionsIn]]
function Foo() { this.a = () => 'a' this.b = () => 'b'}Foo.prototype.c = () => 'c'functions(new Foo)// => ['a', 'b'] Copy
function Foo() { this.a = () => 'a' this.b = () => 'b'}Foo.prototype.c = () => 'c'functions(new Foo)// => ['a', 'b']
Creates an array of function property names from own enumerable properties of
object
.