Reorg build, fp, and lib files.

This commit is contained in:
John-David Dalton
2016-01-16 11:18:56 -08:00
parent f555cd2303
commit 9d2d4f39bc
13 changed files with 45 additions and 160 deletions

10
lib/fp/template/_util.jst Normal file
View File

@@ -0,0 +1,10 @@
module.exports = {
'ary': require('../ary'),
'cloneDeep': require('../cloneDeep'),
'curry': require('../curry'),
'forEach': require('../internal/arrayEach'),
'isFunction': require('../isFunction'),
'iteratee': require('../iteratee'),
'keys': require('../internal/baseKeys'),
'rearg': require('../rearg')
};

View File

@@ -0,0 +1,16 @@
var baseConvert = require('./_baseConvert'),
util = require('./_util');
/**
* Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
* version. If `name` is an object its methods will be converted.
*
* @param {string} name The name of the function to wrap.
* @param {Function} [func] The function to wrap.
* @returns {Function|Object} Returns the converted function or object.
*/
function convert(name, func) {
return baseConvert(util, name, func);
}
module.exports = convert;