How to use the harmony-reflect.has function in harmony-reflect

To help you get started, we’ve selected a few harmony-reflect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Aferz / flask / src / util / config.js View on Github external
export const configureFlask = (configObject, flask) => {
  registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)

  if (Reflect.has(configObject, 'parameters')) {
    registerParameters(configObject.parameters, flask)
  }
  if (Reflect.has(configObject, 'services')) {
    registerServices(configObject.services, flask)
  }
  if (Reflect.has(configObject, 'decorators')) {
    registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
  }
  if (Reflect.has(configObject, 'listeners')) {
    registerGlobalListeners(configObject.listeners, flask)
  }
}
github Aferz / flask / src / util / config.js View on Github external
export const configureFlask = (configObject, flask) => {
  registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)

  if (Reflect.has(configObject, 'parameters')) {
    registerParameters(configObject.parameters, flask)
  }
  if (Reflect.has(configObject, 'services')) {
    registerServices(configObject.services, flask)
  }
  if (Reflect.has(configObject, 'decorators')) {
    registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
  }
  if (Reflect.has(configObject, 'listeners')) {
    registerGlobalListeners(configObject.listeners, flask)
  }
}
github Aferz / flask / src / util / config.js View on Github external
export const configureFlask = (configObject, flask) => {
  registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)

  if (Reflect.has(configObject, 'parameters')) {
    registerParameters(configObject.parameters, flask)
  }
  if (Reflect.has(configObject, 'services')) {
    registerServices(configObject.services, flask)
  }
  if (Reflect.has(configObject, 'decorators')) {
    registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
  }
  if (Reflect.has(configObject, 'listeners')) {
    registerGlobalListeners(configObject.listeners, flask)
  }
}
github Aferz / flask / src / util / config.js View on Github external
export const configureFlask = (configObject, flask) => {
  registerConfigValues(Reflect.get(configObject, 'config') || {}, flask)

  if (Reflect.has(configObject, 'parameters')) {
    registerParameters(configObject.parameters, flask)
  }
  if (Reflect.has(configObject, 'services')) {
    registerServices(configObject.services, flask)
  }
  if (Reflect.has(configObject, 'decorators')) {
    registerDecorators(GLOBAL_NAMESPACE, configObject.decorators, flask)
  }
  if (Reflect.has(configObject, 'listeners')) {
    registerGlobalListeners(configObject.listeners, flask)
  }
}

harmony-reflect

ES5 shim for ES6 (ECMAScript 6) Reflect and Proxy objects

(Apache-2.0 OR MPL-1.1)
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis