ffffng/app/bower_components/lodash/fp/_convertBrowser.js

19 lines
615 B
JavaScript
Raw Permalink Normal View History

2016-05-16 13:33:49 +02:00
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);
}
2017-05-13 13:25:33 +02:00
if (typeof _ == 'function' && typeof _.runInContext == 'function') {
2016-05-16 13:33:49 +02:00
_ = browserConvert(_.runInContext());
}
module.exports = browserConvert;