Update fp wiki template.

This commit is contained in:
John-David Dalton
2016-02-19 01:23:02 -08:00
parent a58a276ffd
commit 2509f562b5

View File

@@ -25,7 +25,10 @@ var extend = require('lodash/fp/extend');
## Convert
This module is used to convert Lodash methods to their `fp` counterparts.
Although `lodash/fp` & its method modules come pre-converted there are times when
you may want to convert another lodash package or create a customized conversion.
Thats when the `convert` module comes in handy.
```js
var convert = require('lodash/fp/convert');
@@ -42,7 +45,7 @@ var fp = convert({
var fp = convert(lodash.runInContext());
```
Its even customizable so you can create the `fp` function thats right for you.
Its even customizable.
```js
// Every option is `true` by default.
var filter = convert('filter', _.filter, {
@@ -81,6 +84,8 @@ Methods that cap iteratees to one argument:<br>
Methods that cap iteratees to two arguments:<br>
<%= toFuncList(_.keys(_.pick(mapping.iterateeAry, _.partial(_.eq, _, 2)))) %>
The iteratee of `mapKeys` is invoked with one argument: (key)
#### Fixed Arity
Methods with a fixed arity of one:<br>
@@ -114,6 +119,9 @@ Methods with custom argument orders:<br>
Methods with unchanged argument orders:<br>
<%= toFuncList(_.keys(mapping.skipRearg)) %>
The methods `partial` & `partialRight` accept an array of arguments to partially
apply as their second parameter.
#### New Methods
Methods created to accommodate Lodashs variadic methods:<br>