identity

最后更新于:2022-04-02 00:08:19

## identity + [link](./identity "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L13286 "View in source.") + [npm](https://www.npmjs.com/package/lodash.identity "See the npm package.") ``` _.identity(value) ``` 这个方法返回首个提供的参数 ### 参数 1. value (\*) 任何值 ### 返回值 (\*) 返回 value ### 示例 ``` var object = { 'user': 'fred' }; _.identity(object) === object; // => true ```
';