tsc 7.0.2 --strict: o==={} -> error TS2839: This condition will always return 'false' since JavaScript compares objects by reference, not value.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on obj_cmp.ts containing: const o={}; if(o==={}){} export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2839: This condition will always return 'false' since JavaScript compares objects by reference, not value.