Skip to content

Commit 6e0748c

Browse files
author
George
committed
Fixed mobxjs#341 ObservableArray.find return null instead of undefined
1 parent de437da commit 6e0748c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/observablearray.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export class ObservableArray<T> extends StubArray {
276276
for (let i = fromIndex; i < l; i++)
277277
if (predicate.call(thisArg, items[i], i, this))
278278
return items[i];
279-
return null;
279+
return undefined;
280280
}
281281

282282
/*

0 commit comments

Comments
 (0)