docs: function checkHasType(value, type, message) {
      checkNotEmpty(message, "No error message passed to checkHasType");
      if (typeof value !== type) {
          message = message.replace("{{actual}}", typeof value).replace("{{expected}}", type);
          throw new Error(message);
      }
  }