code: function isComponentInstanced(entity, componentName) {
    for (var component in entity.components) {
      if (component.substr(0, component.indexOf('__')) === componentName) {
        return true;
      }
    }
  }
docs: /* eslint-disable no-unused-vars 
  Check if component has multiplicity.