ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## valuesIn + [link](./valuesIn "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L11883 "View in source.") + [npm](https://www.npmjs.com/package/lodash.valuesin "See the npm package.") ``` _.valuesIn(object) ``` 创建 `object` 自身和继承的可枚举属性的值为数组 **注意:** 非对象的值会强制转换为对象 ### 参数 1. object (Object) 要检索的对象 ### 返回值 (Array) Returns the array of property values. ### 示例 ``` function Foo() { this.a = 1; this.b = 2; } Foo.prototype.c = 3; _.valuesIn(new Foo); // => [1, 2, 3] (无法保证遍历的顺序) ```