mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import createWrapper from './_createWrapper.js';
|
||||
import baseRest from './_baseRest.js';
|
||||
import createWrap from './_createWrap.js';
|
||||
import getHolder from './_getHolder.js';
|
||||
import replaceHolders from './_replaceHolders.js';
|
||||
import rest from './rest.js';
|
||||
|
||||
/** Used to compose bitmasks for wrapper metadata. */
|
||||
/** Used to compose bitmasks for function metadata. */
|
||||
var PARTIAL_RIGHT_FLAG = 64;
|
||||
|
||||
/**
|
||||
@@ -25,9 +25,9 @@ var PARTIAL_RIGHT_FLAG = 64;
|
||||
* @returns {Function} Returns the new partially applied function.
|
||||
* @example
|
||||
*
|
||||
* var greet = function(greeting, name) {
|
||||
* function greet(greeting, name) {
|
||||
* return greeting + ' ' + name;
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* var greetFred = _.partialRight(greet, 'fred');
|
||||
* greetFred('hi');
|
||||
@@ -38,9 +38,9 @@ var PARTIAL_RIGHT_FLAG = 64;
|
||||
* sayHelloTo('fred');
|
||||
* // => 'hello fred'
|
||||
*/
|
||||
var partialRight = rest(function(func, partials) {
|
||||
var partialRight = baseRest(function(func, partials) {
|
||||
var holders = replaceHolders(partials, getHolder(partialRight));
|
||||
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
|
||||
return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
|
||||
});
|
||||
|
||||
// Assign default placeholders.
|
||||
|
||||
Reference in New Issue
Block a user