tsc 7.0.2 --strict: Map.get(...).toFixed() -> error TS2532: Object is possibly 'undefined'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on map_get.ts containing: const m=new Map<string,number>(); m.get("a").toFixed(); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2532: Object is possibly 'undefined'.