Rebuild lodash and docs.

This commit is contained in:
John-David Dalton
2016-11-15 22:06:47 -08:00
parent 95d3477c22
commit 53ba1e0c3c
9 changed files with 795 additions and 468 deletions

35
dist/lodash.fp.js vendored
View File

@@ -81,6 +81,9 @@ return /******/ (function(modules) { // webpackBootstrap
var mapping = __webpack_require__(2),
fallbackHolder = __webpack_require__(3);
/** Built-in value reference. */
var push = Array.prototype.push;
/**
* Creates a function, with an arity of `n`, that invokes `func` with the
* arguments it receives.
@@ -141,6 +144,36 @@ return /******/ (function(modules) { // webpackBootstrap
};
}
/**
* This function is like `_.spread` except that it includes arguments after those spread.
*
* @private
* @param {Function} func The function to spread arguments over.
* @param {number} start The start position of the spread.
* @returns {Function} Returns the new function.
*/
function spread(func, start) {
return function() {
var length = arguments.length,
args = Array(length);
while (length--) {
args[length] = arguments[length];
}
var array = args[start],
lastIndex = args.length - 1,
otherArgs = args.slice(0, start);
if (array) {
push.apply(otherArgs, array);
}
if (start != lastIndex) {
push.apply(otherArgs, args.slice(start + 1));
}
return func.apply(this, otherArgs);
};
}
/**
* Creates a function that wraps `func` and uses `cloner` to clone the first
* argument it receives.
@@ -221,7 +254,6 @@ return /******/ (function(modules) { // webpackBootstrap
'iteratee': util.iteratee,
'keys': util.keys,
'rearg': util.rearg,
'spread': util.spread,
'toInteger': util.toInteger,
'toPath': util.toPath
};
@@ -235,7 +267,6 @@ return /******/ (function(modules) { // webpackBootstrap
isFunction = helpers.isFunction,
keys = helpers.keys,
rearg = helpers.rearg,
spread = helpers.spread,
toInteger = helpers.toInteger,
toPath = helpers.toPath;