Avoiding Global Name Collisions with Namespace Imports in JavaScript

How do you avoid name collisions with globals such as Number? I'm considering using import * as E from 'effect' and then E.Number instead of named imports so I don't ever have to keep track of possible collisions. Anyone else doing this or do you all just use an alias in the specific cases when there's a collision?
Was this page helpful?