My Code:
export class AppComponent implements OnInit {
public manipulate: any ;
...
this.results.forEach(result => {
var index = result.date_value;
if (!this.manipulate.hasOwnProperty(index)) {
this.manipulate.{index} = [];
}
this.manupulate.{index}.push(result);
});
}
Expected Result:
this.manupulate = {
20171001 : [
0: { resultset },
...
]
}
How to write the program. If I use Array the browser handed. the reason is a high range of the index value.
The below javascript code is run perfectly.
manupulate[20171001] =
[
0: { resultset },
...
]
}
If I use typescript the browser handed.
this.manupulate[20171001] =
[
0: { resultset },
...
]
}
Thanks for all.