Revert to old behavior for forEach
This commit is contained in:
parent
711d10aada
commit
9e81c5c09d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue