advancedApiModeTrap = function advancedApiModeTrap(methodName) {
    if (apiMode !== ApiMode.ADVANCED) {
      throw new Error(methodName + " is only available in 'advanced' API mode. " + "You need to call advancedAPI() first.");
    }
  }
@return {boolean} True iff the current API mode is "advanced". See {@link advancedAPI}.
@memberof jsPDF#
@name isAdvancedAPI