How to use the lokijs/src/loki-indexed-adapter.js.prototype function in lokijs

To help you get started, we’ve selected a few lokijs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chronologic / eth-alarm-clock-dapp / app / services / network-aware-storage.js View on Github external
_getStorageAdapter() {
    if (LokiIndexedAdapter.prototype.checkAvailability()) {
      return new LokiIndexedAdapter();
    }

    return new LokiMemoryAdapter();
  }