Skip to content

Instantly share code, notes, and snippets.

@verticonaut
Created January 7, 2021 09:15
Show Gist options
  • Save verticonaut/cce47a3f4384119736a97a2218e4c7d7 to your computer and use it in GitHub Desktop.
Save verticonaut/cce47a3f4384119736a97a2218e4c7d7 to your computer and use it in GitHub Desktop.
Declare global object in JS
class Validator {}
var global = window || global;
global.Validator = Validator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment