Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
615 bytes
|
Line | |
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.