AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
## flip + [link](./flip "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L8794 "View in source.") + [npm](https://www.npmjs.com/package/lodash.flip "See the npm package.") ``` _.flip(func) ``` 创建一个翻转接收参数的 `func` 函数。 ### 参数 1. func (Function) 要翻转参数的函数 ### 返回值 (Function) 返回新的函数 ### 示例 ``` var flipped = _.flip(function() { return _.toArray(arguments); }); flipped('a', 'b', 'c', 'd'); // => ['d', 'c', 'b', 'a'] ```