codemelted.js Module
    Preparing search index...

    Function storage_clear

    • Clears the local storage of the module.

      Parameters

      • Optionaltype: string = STORAGE_TYPE.Local

        The storage to act upon.

      Returns Promise<void>

      A rejected promise represents an API violation.

      // To clear all elements in the specified storage type
      // Defaults to STORAGE_TYPE.Local
      await storage_clear();
      // To specify type
      await storage_clear(STORAGE_TYPE.Session);