> 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/prototypechain.md).

# \_.prototype.chain

**语法：**

```javascript
_.prototype.chain()
```

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

**描述：**

创建一个`lodash`包装实例，启用显式链模式。

**开始版本：**&#x30;.1.0

**返回值：**

* `(Object)`: 返回 lodash 的包装实例。

**例子：**

```javascript
var users = [
  { 'user': 'barney', 'age': 36 },
  { 'user': 'fred',   'age': 40 }
];

// A sequence without explicit chaining.
_(users).head();
// => { 'user': 'barney', 'age': 36 }

// A sequence with explicit chaining.
_(users)
  .chain()
  .head()
  .pick('user')
  .value();
// => { 'user': 'barney' }
```
