I am developing an angular project using typescript. When writing a pipe, I used Object.values()
. As a result, the value of the incoming Object was parsed and displayed without problems, but an error was reported on the console.
Could it be that typescript did not include this method Object.values()
, but why is the final result still correct?
According to MDN,
Object.values()
is the content of es2017, so you need to modify tsconfig.json and change the target to es2017