UNPKG

@jrc03c/js-math-tools

Version:
16 lines (12 loc) 197 B
const isBrowser = new Function( ` try { return this === window } catch(e) {} try { return !!importScripts } catch(e){} return false `, ) export { isBrowser }