ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## functionsIn + [link](./functionsIn "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L11141 "View in source.") + [npm](https://www.npmjs.com/package/lodash.functionsin "See the npm package.") ``` _.functionsIn(object) ``` 返回一个 function 对象自身和继承的可枚举属性名的数组。 ### 参数 1. object (Object) 要检索的对象 ### 返回值 (Array) 返回包含属性名的新数组 ### 示例 ``` function Foo() { this.a = _.constant('a'); this.b = _.constant('b'); } Foo.prototype.c = _.constant('c'); _.functionsIn(new Foo); // => ['a', 'b', 'c'] ```