mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
fp docs - Split lib/doc/apply-fp-mapping into multiples files.
This commit is contained in:
committed by
John-David Dalton
parent
39735df82f
commit
6f4099c20b
11
lib/doc/apply-fp-mapping/index.js
Normal file
11
lib/doc/apply-fp-mapping/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var Entry = require('docdown/lib/entry'),
|
||||
getReorderedParams = require('./parameters'),
|
||||
getReorderedExample = require('./example');
|
||||
|
||||
/**
|
||||
* Updates `docdown` `Entry`'s prototype so that parameters/arguments are reordered according to `mapping`.
|
||||
*/
|
||||
module.exports = function applyFPMapping(mapping) {
|
||||
Entry.prototype.getParams = getReorderedParams(mapping);
|
||||
Entry.prototype.getExample = getReorderedExample(mapping);
|
||||
};
|
||||
Reference in New Issue
Block a user