Skip to content

Commit

Permalink
fix(isFunction): check async case
Browse files Browse the repository at this point in the history
  • Loading branch information
djalmajr committed Apr 27, 2023
1 parent 8830f8b commit 5442378
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/isFunction.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { typeOf } from './typeOf';
import type { Fn } from './types';

export function isFunction(value: unknown): value is Fn<unknown[], unknown> {
return typeOf(value) === 'function';
return typeof value === 'function';
}

0 comments on commit 5442378

Please sign in to comment.