1
|
var baseConvert = require('./_baseConvert'),
|
2
|
util = require('./_util');
|
3
|
|
4
|
/**
|
5
|
* Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
|
6
|
* version with conversion `options` applied. If `name` is an object its methods
|
7
|
* will be converted.
|
8
|
*
|
9
|
* @param {string} name The name of the function to wrap.
|
10
|
* @param {Function} [func] The function to wrap.
|
11
|
* @param {Object} [options] The options object. See `baseConvert` for more details.
|
12
|
* @returns {Function|Object} Returns the converted function or object.
|
13
|
*/
|
14
|
function convert(name, func, options) {
|
15
|
return baseConvert(util, name, func, options);
|
16
|
}
|
17
|
|
18
|
module.exports = convert;
|