/ cloudformation-templates / node_modules / lodash / fp / _convertBrowser.js
_convertBrowser.js
 1  var baseConvert = require('./_baseConvert');
 2  
 3  /**
 4   * Converts `lodash` to an immutable auto-curried iteratee-first data-last
 5   * version with conversion `options` applied.
 6   *
 7   * @param {Function} lodash The lodash function to convert.
 8   * @param {Object} [options] The options object. See `baseConvert` for more details.
 9   * @returns {Function} Returns the converted `lodash`.
10   */
11  function browserConvert(lodash, options) {
12    return baseConvert(lodash, lodash, options);
13  }
14  
15  if (typeof _ == 'function' && typeof _.runInContext == 'function') {
16    _ = browserConvert(_.runInContext());
17  }
18  module.exports = browserConvert;