src/mount.js
/**
   * Lookup the matching datastore for the given key.
   *
   * @private
   * @param {Key} key
   * @returns {{Datastore, Key, Key}}
   */
Lookup the matching datastore for the given key.
Lookup the matching datastore for the given key .
_lookup (key) {
    for (const mount of this.mounts) {
      if (mount.prefix.toString() === key.toString() || mount.prefix.isAncestorOf(key)) {
        const s = replaceStartWith(key.toString(), mount.prefix.toString())
        return {
          datastore: mount.datastore,
          mountpoint: mount.prefix,
          rest: new Key(s)
        }
      }
    }
  }
_lookup ( key ) { for ( const mount of this . mounts ) { if ( mount . prefix . toString ( ) === key . toString ( ) || mount . prefix . isAncestorOf ( key ) ) { const s = replaceStartWith ( key . toString ( ) , mount . prefix . toString ( ) ) return { datastore : mount . datastore , mountpoint : mount . prefix , rest : new Key ( s ) } } } }
Lookup the matching datastore for the given key.
Lookup the matching datastore for the given key .