mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import baseSlice from '../internal/baseSlice';
|
||||
import createWrapper from '../internal/createWrapper';
|
||||
import replaceHolders from '../internal/replaceHolders';
|
||||
import createPartial from '../internal/createPartial';
|
||||
|
||||
/** Used to compose bitmasks for wrapper metadata. */
|
||||
var PARTIAL_RIGHT_FLAG = 64;
|
||||
@@ -19,7 +17,7 @@ var PARTIAL_RIGHT_FLAG = 64;
|
||||
* @memberOf _
|
||||
* @category Function
|
||||
* @param {Function} func The function to partially apply arguments to.
|
||||
* @param {...*} [args] The arguments to be partially applied.
|
||||
* @param {...*} [partials] The arguments to be partially applied.
|
||||
* @returns {Function} Returns the new partially applied function.
|
||||
* @example
|
||||
*
|
||||
@@ -36,12 +34,7 @@ var PARTIAL_RIGHT_FLAG = 64;
|
||||
* sayHelloTo('fred');
|
||||
* // => 'hello fred'
|
||||
*/
|
||||
function partialRight(func) {
|
||||
var partials = baseSlice(arguments, 1),
|
||||
holders = replaceHolders(partials, partialRight.placeholder);
|
||||
|
||||
return createWrapper(func, PARTIAL_RIGHT_FLAG, null, partials, holders);
|
||||
}
|
||||
var partialRight = createPartial(PARTIAL_RIGHT_FLAG);
|
||||
|
||||
// Assign default placeholders.
|
||||
partialRight.placeholder = {};
|
||||
|
||||
Reference in New Issue
Block a user