mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Rebuild dist/docs.
This commit is contained in:
9
dist/lodash.compat.js
vendored
9
dist/lodash.compat.js
vendored
@@ -6960,8 +6960,9 @@
|
||||
*/
|
||||
function createCallback(func, thisArg, argCount) {
|
||||
var type = typeof func;
|
||||
if (func == null || type == 'function') {
|
||||
return baseCreateCallback(func, thisArg, argCount);
|
||||
if (type == 'function' || func == null) {
|
||||
return (typeof thisArg == 'undefined' || !('prototype' in func)) &&
|
||||
func || baseCreateCallback(func, thisArg, argCount);
|
||||
}
|
||||
// handle "_.pluck" and "_.where" style callback shorthands
|
||||
return type != 'object' ? property(func) : match(func);
|
||||
@@ -7321,10 +7322,10 @@
|
||||
* // => 'slate'
|
||||
*/
|
||||
function result(object, key, defaultValue) {
|
||||
if (object == null || typeof object[key] == 'undefined') {
|
||||
var value = object == null ? undefined : object[key];
|
||||
if (typeof value == 'undefined') {
|
||||
return defaultValue;
|
||||
}
|
||||
var value = object[key];
|
||||
return isFunction(value) ? object[key]() : value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user