Skip to content

Commit

Permalink
Refactor isPromise function
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvirstreame committed Mar 19, 2024
1 parent 37f5be1 commit cf7a157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function isPromise(value: any): value is Promise<any> {
return value && value.then !== undefined ? true : false
}
return Boolean(value && value.then);
}

0 comments on commit cf7a157

Please sign in to comment.