mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Rearrange tag check order in isFunction.
This commit is contained in:
@@ -30,7 +30,7 @@ function isFunction(value) {
|
|||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
||||||
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
||||||
const tag = baseGetTag(value);
|
const tag = baseGetTag(value);
|
||||||
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
return tag == funcTag || tag == asyncTag || tag == genTag || tag == proxyTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default isFunction;
|
export default isFunction;
|
||||||
|
|||||||
Reference in New Issue
Block a user