It appears it does not work in Stackblitz, but can Object.values()
be used in general in Angular projects?
IIUC Angular includes CoreJS and the purpose of it is to allow things like Object.values()
to be available across all browsers?
In order for typescript to recognize Object.values
, the developer should add to tsconfig.json compilerOptions: {lib: ["esnext"]}
. Stackblitz simply does not have this setting.
Angular absolutely can utilize this feature, because it is well supported by modern browsers (except old IE, as always)