syuji-higa
11/15/2019 - 2:05 AM

JavaScript - namespace

JavaScript - namespace

if (typeof APP !== 'undefined') {
  throw new Error('namespace "APP" is already exists.')
}
window.APP = {}