 
- Lodash Tutorial
- Lodash - Home
- Lodash - Overview
- Lodash - Environment Setup
- Lodash - Array
- Lodash - Collection
- Lodash - Date
- Lodash - Function
- Lodash - Lang
- Lodash - Math
- Lodash - Number
- Lodash - Object
- Lodash - Seq
- Lodash - String
- Lodash - Util
- Lodash - Properties
- Lodash - Methods
- Lodash Useful Resources
- Lodash - Quick Guide
- Lodash - Useful Resources
- Lodash - Discussion
Lodash - 函数
Lodash 有许多易于使用的方法,有助于创建和处理函数。本章详细讨论它们。
Lodash 提供了各种方法来处理函数,如下所示 -
| 先生。 | 方法和语法 | 
|---|---|
| 1 | _.ary(func, [n=func.length]) | 
| 2 | _.before(n, 函数) | 
| 3 | _.bind(func, thisArg, [部分]) | 
| 4 | _.bindKey(对象, 键, [部分]) | 
| 5 | _.curry(func, [arity=func.length]) | 
| 6 | _.curryRight(func, [arity=func.length]) | 
| 7 | _.delay(func, 等待, [args]) | 
| 8 | _.flip(函数) | 
| 9 | _.memoize(func, [解析器]) | 
| 10 | _.negate(谓词) | 
| 11 | _.once(函数) | 
| 12 | _.overArgs(func, [变换=[_.identity]]) | 
| 13 | _.partial(func, [部分]) | 
| 14 | _.partialRight(func, [部分]) | 
| 15 | _.rearg(函数,索引) | 
| 16 | _.rest(func, [start=func.length-1]) | 
| 17 号 | _.spread(func, [开始=0]) | 
| 18 | _.一元(func) | 
| 19 | _.wrap(值, [包装=身份]) |