mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Revert to old behavior for forEach
This commit is contained in:
parent
711d10aada
commit
9e81c5c09d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user