Am new to angular and typescript and I have this function
onSetValues(user){ //user is an object
console.log(user);
}
The console.log above returns an object of the form
role:"administrator"
status:10
tries:2
I would like to transform thisto an array so that i can loop through them like
for(var i=0; i<array.length; i++){
//do m stuff here
}
How do i convert this
I have checked on this link but it doesnt offere help in angular2/typescript
I have also tried
console.log(user| {}) //also fails