> For the complete documentation index, see [llms.txt](https://lodash.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodash.shujuwajue.com/seq/prototypesymboliterator.md).

# \_.prototype\[Symbol.iterator]

**语法：**

```javascript
_.prototype[Symbol.iterator]()
```

**源代码链接：**[source](https://github.com/lodash/lodash/blob/4.17.10/lodash.js#L8949)

**描述：**

启用包装对象为 iterable。

**开始版本：**&#x34;.0.0

**返回值：**

* `(Object)`: 返回包装对象。

**例子：**

```javascript
var wrapped = _([1, 2]);

wrapped[Symbol.iterator]() === wrapped;
// => true

Array.from(wrapped);
// => [1, 2]
```
