I'm using the object.entries method to push some JSON object data into an array... it was working and now I'm getting the error:
Property 'entries' does not exist on type 'ObjectConstructor'.
I understand from looking at similar issues, this may be because the version of typescript I am using does not support the entries method, but is there an alternative? I don't feel comfortable changing versions etc as I'm new to typescript.
Object.entries(data).forEach(([key, value]) => {
this.array.push ({
id: key,
name: value.name,
desc: value.desc})
});
thank you for any input/help :)