Add options to baseConvert.

This commit is contained in:
John-David Dalton
2016-02-07 20:17:00 -08:00
parent db23fcfe9f
commit 349c627110
4 changed files with 149 additions and 26 deletions

View File

@@ -7,10 +7,11 @@ var baseConvert = require('./_baseConvert'),
*
* @param {string} name The name of the function to wrap.
* @param {Function} [func] The function to wrap.
* @param {Object} [options] The options object. See `baseConvert` for more details.
* @returns {Function|Object} Returns the converted function or object.
*/
function convert(name, func) {
return baseConvert(util, name, func);
function convert(name, func, options) {
return baseConvert(util, name, func, options);
}
module.exports = convert;