mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Revert to old behavior for forEach
This commit is contained in:
1 parent
711d10aada
commit
9e81c5c09d
1 file changed
+2
-2
@@ -12,11 +12,11 @@ module ts {
|
||||
if (array) {
|
||||
for (var i = 0, len = array.length; i < len; i++) {
|
||||
if (result = callback(array[i])) {
|
||||
return result;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
return result;
|
||||
}
|
||||
|
||||
export function contains<T>(array: T[], value: T): boolean {
|
||||
|
||||
Reference in new issue
Block a user