You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
615 B
19 lines
615 B
2 years ago
|
var baseConvert = require('./_baseConvert');
|
||
|
|
||
|
/**
|
||
|
* Converts `lodash` to an immutable auto-curried iteratee-first data-last
|
||
|
* version with conversion `options` applied.
|
||
|
*
|
||
|
* @param {Function} lodash The lodash function to convert.
|
||
|
* @param {Object} [options] The options object. See `baseConvert` for more details.
|
||
|
* @returns {Function} Returns the converted `lodash`.
|
||
|
*/
|
||
|
function browserConvert(lodash, options) {
|
||
|
return baseConvert(lodash, lodash, options);
|
||
|
}
|
||
|
|
||
|
if (typeof _ == 'function' && typeof _.runInContext == 'function') {
|
||
|
_ = browserConvert(_.runInContext());
|
||
|
}
|
||
|
module.exports = browserConvert;
|