summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/_createFlow.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/_createFlow.js')
-rw-r--r--tools/eslint/node_modules/lodash/_createFlow.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/eslint/node_modules/lodash/_createFlow.js b/tools/eslint/node_modules/lodash/_createFlow.js
index 911aaf15ca..b70d1df690 100644
--- a/tools/eslint/node_modules/lodash/_createFlow.js
+++ b/tools/eslint/node_modules/lodash/_createFlow.js
@@ -1,6 +1,5 @@
var LodashWrapper = require('./_LodashWrapper'),
- baseFlatten = require('./_baseFlatten'),
- baseRest = require('./_baseRest'),
+ flatRest = require('./_flatRest'),
getData = require('./_getData'),
getFuncName = require('./_getFuncName'),
isArray = require('./isArray'),
@@ -9,7 +8,7 @@ var LodashWrapper = require('./_LodashWrapper'),
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
-/** Used as the `TypeError` message for "Functions" methods. */
+/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to compose bitmasks for function metadata. */
@@ -26,9 +25,7 @@ var CURRY_FLAG = 8,
* @returns {Function} Returns the new flow function.
*/
function createFlow(fromRight) {
- return baseRest(function(funcs) {
- funcs = baseFlatten(funcs, 1);
-
+ return flatRest(function(funcs) {
var length = funcs.length,
index = length,
prereq = LodashWrapper.prototype.thru;