Skip to content

Commit 3074ed1

Browse files
committed
refactor(maybe): use utility function
1 parent e6df8d2 commit 3074ed1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maybe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class Maybe<TValue> {
136136
maybes: Maybe<TValue>[],
137137
projection?: FunctionOfTtoK<TValue, Some<TNewValue>>
138138
): TValue[] | TNewValue[] {
139-
if (typeof projection === 'function') {
139+
if (isFunction(projection)) {
140140
const values: TNewValue[] = [];
141141

142142
for (const m of maybes) {

0 commit comments

Comments
 (0)