<input id="date_from" type="text" [(ngModel)]="dates"/>
var sum_pairs=function(ints, s){
console.time('mark')
var x, y;
var end = ints.length;
for (var j = 0; j < end; j++) {
var t = s - ints[j];
for (var i = j + 1; i < end; i++) {
if (t == ints[i]) {
x = j;
y = i;
end = i;
}
}
}
console.timeEnd('mark')
return x == undefined ? x : [ints[x], ints[y]];
}
x = ints[j];
y = ints[i];
x = j;
y = i;
if (ints[j] + ints[i] == s) {
for (var j = 0; j < end; j++) {
var t = s - ints[j];
...
if (t = ints[i]) {