ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## prototype.Symbol.iterator + [link](./prototype-Symbol-iterator "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L7388 "View in source.") + [npm](https://www.npmjs.com/package/lodash.prototype.symbol.iterator "See the npm package.") ``` _.prototype.Symbol.iterator() ``` 启用包装对象为 iterable。 ### 返回值 (Object) 返回包装对象 ### 示例 ``` var wrapped = _([1, 2]); wrapped[Symbol.iterator]() === wrapped; // => true Array.from(wrapped); // => [1, 2] ```