code: function invariant(predicate, Err, ...format) {
    if (Boolean(predicate) === false) {
      return undefined
    }
  
    if (typeof Err === "string") {
      throw new Error(fmt(Err, ...format))
    }
  
    if (typeof Err === "function") {
      const message = format.shift()
  
      throw new Err(fmt(message, ...format))
    }
  
    throw Err
  }
docs: @param {boolean} predicate
  @param {string | Function} Err
  @param {any[]} ...format
  
  @throws {any} given Err when predicate is "true"