mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Bump to v4.1.4.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* lodash 4.1.3 (Custom Build) <https://lodash.com/>
|
||||
* lodash (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/
|
||||
var createWrapper = require('lodash._createwrapper'),
|
||||
rest = require('lodash.rest');
|
||||
@@ -47,7 +47,7 @@ function replaceHolders(array, placeholder) {
|
||||
* @param {Function} func The function to inspect.
|
||||
* @returns {*} Returns the placeholder value.
|
||||
*/
|
||||
function getPlaceholder(func) {
|
||||
function getHolder(func) {
|
||||
var object = func;
|
||||
return object.placeholder;
|
||||
}
|
||||
@@ -86,7 +86,7 @@ function getPlaceholder(func) {
|
||||
* // => 'hi fred'
|
||||
*/
|
||||
var partial = rest(function(func, partials) {
|
||||
var holders = replaceHolders(partials, getPlaceholder(partial));
|
||||
var holders = replaceHolders(partials, getHolder(partial));
|
||||
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user