Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 337ee36

Browse files
committed
refactor: Switch to consistant typeof
1 parent 0d645a9 commit 337ee36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function isString(a) {
4848
}
4949

5050
export function isFunction(a) {
51-
return isType('Function', a);
51+
return typeof a === 'function';
5252
}
5353

5454
export function isType(type, obj) {

0 commit comments

Comments
 (0)