summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/_createFlow.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-10-15 11:30:25 -0700
committerRich Trott <rtrott@gmail.com>2016-10-18 15:28:21 -0700
commit2981f24f926da32d708c8bb39d90fff5aa73bc3f (patch)
treee154567c25398160dfe9ac8e27dd79c65a436272 /tools/eslint/node_modules/lodash/_createFlow.js
parent150dc5c2e6a848aa49bb95f4e6c0cbf0da5d0e73 (diff)
downloadnode-new-2981f24f926da32d708c8bb39d90fff5aa73bc3f.tar.gz
tools: update ESLint to v3.8.0
Update ESLint to v3.8.0. * Installed with `npm install --production` to avoid installing unnecessary dev files * Used `dmn -f clean` to further eliminate unneeded files PR-URL: https://github.com/nodejs/node/pull/9112 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
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;