I have a object array and would like to get key and value by iterating though it, however I only get 0, 1 as index. anyone know why?
const vairable = [{key1: "value1"}, {key2: "value2"}]
Object.keys(vairable).forEach((i: any) => {
console.log(i); # get 0 and 1, I would like to have key1, key2
});
keySelectors? You have an array of non-uniform objects invairable. If you want the keys and values of each object, first iteratevairable, then useObject.entries()to iterate the properties of each objectObject.entriesis not available in typescript it seems