mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Rebuild docs/dists and update tested browsers in readme.
This commit is contained in:
28
dist/lodash.js
vendored
28
dist/lodash.js
vendored
@@ -4316,10 +4316,12 @@
|
||||
if (arguments.length < 3) {
|
||||
return createWrapper(func, BIND_FLAG, null, thisArg);
|
||||
}
|
||||
var arity = func && (func[expando] ? func[expando][2] : func.length),
|
||||
partialArgs = slice(arguments, 2);
|
||||
if (func) {
|
||||
var arity = func[expando] ? func[expando][2] : func.length,
|
||||
partialArgs = slice(arguments, 2);
|
||||
|
||||
arity -= partialArgs.length;
|
||||
arity -= partialArgs.length;
|
||||
}
|
||||
return createWrapper(func, BIND_FLAG | PARTIAL_FLAG, arity, thisArg, partialArgs);
|
||||
}
|
||||
|
||||
@@ -4789,10 +4791,12 @@
|
||||
* // => 'hi fred'
|
||||
*/
|
||||
function partial(func) {
|
||||
var arity = func && (func[expando] ? func[expando][2] : func.length),
|
||||
partialArgs = slice(arguments, 1);
|
||||
if (func) {
|
||||
var arity = func[expando] ? func[expando][2] : func.length,
|
||||
partialArgs = slice(arguments, 1);
|
||||
|
||||
arity -= partialArgs.length;
|
||||
arity -= partialArgs.length;
|
||||
}
|
||||
return createWrapper(func, PARTIAL_FLAG, arity, null, partialArgs);
|
||||
}
|
||||
|
||||
@@ -4827,10 +4831,12 @@
|
||||
* // => { '_': _, 'jq': $ }
|
||||
*/
|
||||
function partialRight(func) {
|
||||
var arity = func && (func[expando] ? func[expando][2] : func.length),
|
||||
partialRightArgs = slice(arguments, 1);
|
||||
if (func) {
|
||||
var arity = func[expando] ? func[expando][2] : func.length,
|
||||
partialRightArgs = slice(arguments, 1);
|
||||
|
||||
arity -= partialRightArgs.length;
|
||||
arity -= partialRightArgs.length;
|
||||
}
|
||||
return createWrapper(func, PARTIAL_RIGHT_FLAG, arity, null, null, partialRightArgs);
|
||||
}
|
||||
|
||||
@@ -7036,10 +7042,10 @@
|
||||
* // => 'slate'
|
||||
*/
|
||||
function result(object, key, defaultValue) {
|
||||
if (object == null) {
|
||||
if (object == null || typeof object[key] == 'undefined') {
|
||||
return defaultValue;
|
||||
}
|
||||
var value = typeof object[key] != 'undefined' ? object[key] : defaultValue;
|
||||
var value = object[key];
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user