object.fromentries is not a function typescript code example Example: object.fromentries typescript "lib": ["es2018", "dom", "esnext"]