UNPKG

solutaaliquid

Version:

common utils for javascript. Utils to get the global scope (browser, webworker & co.). Customizable string escaper. Utilitize for objects. Extension at base javascript api (usefull extention like String.hashcode()).

8 lines (7 loc) 219 B
const GLOBAL = (() => { if(typeof global !== "undefined") return global; if(typeof window !== "undefined") return window; if(typeof self !== "undefined") return self; return {}; })(); export default GLOBAL;