I want to access object key and value in ngFor for example this is my array
var array = [
{'random1':value1},
{'random2':value2},
{'random3': value3}
]
now the object keys are all dynamic and i use my array like this
<tr *ngFor="let item of arrayl; let i of index">
<td>{{i+1}}</td>
<td>item.key</td>// here i want object key
<td>item.value</td>// here object value
</tr>
another question if my array look like this
var array2 = [
['random1',value1],
['random2',value2],
['random3',value3]
]
then how can in acheive same thing
thanks in advance