Rearrange tag check order in isFunction.

This commit is contained in:
John-David Dalton
2017-01-10 00:48:15 -08:00
parent 26ea38dcf4
commit c500b2cc16

View File

@@ -30,7 +30,7 @@ function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
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;