mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Clarify _.isFunction fallback note. [ci skip]
This commit is contained in:
@@ -7415,8 +7415,8 @@
|
|||||||
isFunction = function(value) {
|
isFunction = function(value) {
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
||||||
// in older versions of Chrome and Safari which return 'function' for
|
// in older versions of Chrome and Safari which return 'function' for
|
||||||
// regexes and modern Safari which returns 'object' for typed array
|
// regexes and Safari 8 equivalents which return 'object' for typed
|
||||||
// constructors.
|
// array constructors.
|
||||||
return toString.call(value) == funcClass;
|
return toString.call(value) == funcClass;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user