function removeSubscriber(cb) {
  const index = resizeSubscribers.indexOf(cb);
  if (index > -1) {
    resizeSubscribers.splice(index, 1);
  }
}
Helper for removing the given callback from the list of subscribers.

@param {Function} cb - Subscriber callback function