mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Bump to v3.0.1.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import baseMatches from './baseMatches';
|
||||
import baseProperty from './baseProperty';
|
||||
import baseToString from './baseToString';
|
||||
import bindCallback from './bindCallback';
|
||||
import identity from '../utility/identity';
|
||||
import isBindable from './isBindable';
|
||||
@@ -28,7 +27,7 @@ function baseCallback(func, thisArg, argCount) {
|
||||
// Handle "_.property" and "_.matches" style callback shorthands.
|
||||
return type == 'object'
|
||||
? baseMatches(func, !argCount)
|
||||
: baseProperty(argCount ? baseToString(func) : func);
|
||||
: baseProperty(func + '');
|
||||
}
|
||||
|
||||
export default baseCallback;
|
||||
|
||||
Reference in New Issue
Block a user