Skip to content

Commit

Permalink
Rearrange tag check order in isFunction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jan 10, 2017
1 parent 26ea38d commit c500b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit c500b2c

Please sign in to comment.