code: function disposeSubscription(component) {
    if (defined(component.__observeModelChangeSubscriptions)) {
      for (
        let i = 0;
        i < component.__observeModelChangeSubscriptions.length;
        ++i
      ) {
        component.__observeModelChangeSubscriptions[i].dispose();
      }
      component.__observeModelChangeSubscriptions = undefined;
    }
  }
docs: Disposes of all subscriptions that a component currently has.
  
  @param component The component to find and dispose subscriptions on.