🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 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] ```