_.functionsIn

_.functionsIn(object)

Creates an array of function property names from own and inherited enumerable properties of object.

Since

4.0.0

Arguments

  1. object (Object): The object to inspect.

Returns

(Array): Returns the function names.

Example

function Foo() {
  this.a = _.constant('a');
  this.b = _.constant('b');
}
 
Foo.prototype.c = _.constant('c');
 
_.functionsIn(new Foo);
// => ['a', 'b', 'c']
doc_Lodash
2016-11-27 16:37:22
Comments
Leave a Comment

Please login to continue.